Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
New to NetSuite | N/record: Field.getSelectOptions(options) Method
In our previous article, New to NetSuite | Understanding SuiteScript 2.x Modules, we explored the SuiteScript Modules and N/record module, New to NetSuite | N/record Module Overview, which is used to interact with records. Now, we will take a closer look at one of the members of N/record: Field.getSelectOptions(options) Method.
The Field.getSelectOptions(options) is a method on the record.Field object. It returns the available choices for a dropdown select, multi-select, or radio field. Each returned option contains the option’s internal value and display text, for example:
[
{ value: 5, text: 'abc' },
{ value: 6, text: '123' }
]
It returns the field option internal ID and label as name/value pairs, must be used only on a record in dynamic mode, has no governance cost, and is supported in client and server scripts.
Richard James Uri - SuiteCloud | WMS Tech | SuiteCommerce Advanced
----
- NetSuite Admin Corner | New to NetSuite
- Explore the NSC Webinars Category
- Join our poll and share your ideas! We want to know what you think. Don't forget to comment and make your voice heard!
- Expand your NetSuite knowledge by joining this month's Ask A Guru Live: PROCURE TO PAY. RSVP on this event now!
