I'm Trying to setText on multiselect field
itemobj.setText('fieldID',['a','b','c']) but it's not wokring
The error is getting Invalid Reference key
but i tried with single value then it's working
so there is any limitation to setText ?
j
jen
01/18/2023, 3:34 PM
why are you using setText instead of setValue?
t
Tk
01/18/2023, 3:54 PM
I haven't internal id that's y doing with text data
j
jen
01/18/2023, 4:46 PM
?
jen
01/18/2023, 4:48 PM
what is the type of List/Record for the Multiselect?
b
battk
01/19/2023, 3:01 AM
netsuite internally uses the enquiry character ("\_*u0005*_") as the separator for multiselect values
battk
01/19/2023, 3:02 AM
join your values into a string using enquiry to use with setText
t
Tk
01/19/2023, 6:02 AM
itemOjRecord.setText('custitem_ixs_custom_vendors', ["1 Factory Radio","ACCU-Form"].join("\u0005"));
but getting error:
You have entered an Invalid Field Value 1 Factory RadioACCU-Form for the following field: custitem_ixs_custom_vendors
@battk in above syntax is right or i missing anything?