I have a dropdown field that needs to be set via script. I thought I could set the value based on the text of the field, rather than the numerical internal value, however it's not working. It just unsets the field entirely (if I select something from the dropdown, then run the script, the value is null again).
I am trying
rec.setCurrentSublistText({ sublistId: 'item', fieldId: 'custcol_mydropdownfield', value: myFieldTextValue });
I guess my question is, am I trying to do this wrong, or is it just not possible?