Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
How to get the Text Value of a Select list
I realize that you can use nlapiGetFieldText(fldnam) on the client side, but I need to find out how to do this on the server side. I have a script that is executed when the user saves the Case record, which takes values from the form that was saved and sends them via a SOAP call to another system.
var record = nlapiGetNewRecord();
var origin = record.getFieldValue('origin');
"origin" ends up coming back as a numeric value. How do I get the actual text value that's associated with the select list?
This list is found under SETUP>SUPPORT>CASE ORIGIN TYPES
0