Hi all. I have a custom multi-select field on a r...
# suitescript
j
Hi all. I have a custom multi-select field on a record. The field uses a custom list. In a script I would like to be able to retrieve the selected values on a given record. I am using nlapiLookupField which returns a comma-separated list of the selected options. The record might get locked in the future which is why I am using nlapiLookupField rather than nlapiLoadRecord and getFieldValues(). Now this list has entries that may or may not have commas. I would like a way to get all the text values of the selected options. I can get a comma-separated list by passing “true” as the last argument to nlapiLookupField, but I cannot tell the difference between commas BETWEEN options and a comma WITHIN an option. Is there a way, given the ID (which I can get by passing “false”), that I can get the text value of the entry in the list?