I have a multiple select on an item record that us...
# suitescript
p
I have a multiple select on an item record that uses the built in country list, I'm running a script on the sales order page to compare the selected countries on the item to the shipping address, however when I pull the field value over for the country list I just get a 2 digit code (assuming the internal ID for the country). does anyone know how I can pull the country Name from this, or how I can convert a country name to the ID?
n
This is something you should use: nlobjRecord.getFieldTexts ( name ) /** * Return the selected display values of a multi-select field as an Array. * @restriction only supported for multi-select fields * * @param {string} name field name * @return {string[]} * * @method * @memberOf nlobjRecord * * @since 2008.2 */ Also, if you get an error, sare that with us