How to set Texts in multiselect fields in client script using SuiteScript2.0?

Hi All,

Please use below code to set Multiselect field by using Text in SuiteScript2.0:

In SuiteScript1.0:

      nlapiSetFieldTexts (fldname, txts, firefieldchanged, synchronous)

In SuiteScript2.0:

       CurrentRecord.setTexts(options)

Module Used:

       N/currentRecord Module

Please comment if you have any question.

Thanks

Abhi



Note: Please note that if any value is not available as it is in Drop Down then this api will not give Error.
Also this api works differently if exact match is not in drop down.
where as SetValues throw error if any value is not there and we are trying to set.


Comments