Skip to Content
Former Member
Oct 01, 2009 at 10:35 PM

check Delivery To (shipCond) selected key value when Ordering


Hi Experts,

I have a requirement to check Delivery To (shipCond) selected key value (not description) when hit Order, if selected key value is not "01" or "03", give certain message. below is my code lines added in function send_confirm()in orderTools.js, which give error "Object expected", I know 1st line is not right but don't know how to correct it.

String sc = document.forms['order_positions'].shipCond.value.toString();

if (!sc.equals("01") && !sc.equals("03")) {

................................ }

Any advise on how to correct it?

Thanks, Jin