Modules
Objects/Functions
SuiteScript 2.0
{Field}.getSelectOptions({filter: {string},operator: {string}})
N/currentRecord Module
Field.getSelectOptions()
Method Description:
Returns an array of available options on a standard or custom select, multiselect, or radio field as key-value pairs.
You can use this method only in dynamic mode. For additional information on dynamic mode, see CurrentRecord.isDynamic.
Returns:
array
Only the first 1,000 available options are returned in an array.
If there are more than 1,000 available options, an empty array [] is returned.
This function returns an array in the following format:
This function returns Type Error if the field is not a supported field for this method.
Governance:
None
Supported Script Types:
Client scripts
For more information, see SuiteScript 2.0 Client Script Type.
Module:
N/currentRecord Module
Since:
2016.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Field.getSelectOptions(options)
Example:
// Code Example 1
[{value: 5, text: 'abc'},{value: 6, text: '123'}]
// Code Example 2
//Add additional code
//...
var options = objField.getSelectOptions({
filter : 'C',
operator : 'startswith'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4834781098.html