Discussions
Need Your guys HELP!!!!!!
guys, need help!
i wrote a server side script to get the data from a webform, and store those data to the customer(or prospect) record. however, i cannot correctly store the value from a drop down box in the form. it only return the index number(internal id??) instead of the string value...please help.
here's part of my script...
**************************
record.setFieldValue('phone', webleadid.getFieldValue('custrecord_web_phone'));
record.setFieldValue('email', webleadid.getFieldValue('custrecord_web_email'));
//******* problem occur here ******
var countryCode = webleadid.getFieldValue('custrecord_web_country');
// this supposed to be "US-United States" from a drop down box( country
// LIST), however, it only returns its index number (internal id) 86, not