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
OpenAir Scripting: How to get a value from a custom dropdown field (Hierarchy)
Our client has a requirement to get the value of a dropdown field (hierarchy) from a project record, load the hierarchy node then get the value from a custom field inside the hierarchy node. I tried to use the following codes but it always returns null. Is there a way to list the available custom fields including the hierarchies upon loading the record? How do I get the actual value of the dropdown field so that I would know which hierarchy and hierarchy node to load?
var newr = NSOA.form.getNewRecord();
var projectId = newr.id;
var custid = newr.customer_id;
0