ANS-1437 · SUITESCRIPT DEVELOPMENT

How to Create a Subsidiary Dropdown (SELECT) Field in a NetSuite SuiteLet?

Learn the correct source value to use when defining a SELECT field in a SuiteLet to display a list of NetSuite subsidiaries.

Short answer

To create a dropdown field for subsidiaries in a NetSuite SuiteLet, define the field type as uiModule.FieldType.SELECT and set its source property to 'subsidiary'. This ensures the field correctly populates with the available subsidiary options, allowing users to filter sublists or perform other subsidiary-specific actions.

Scenario

A NetSuite developer is building a SuiteLet that requires a dropdown field to filter a sublist based on subsidiaries. Initial attempts to populate the SELECT field with subsidiary data using common source values proved unsuccessful, leading to an empty or incorrectly populated dropdown.

Solution

When creating a SELECT field in a NetSuite SuiteLet to display a list of subsidiaries, the correct source value to use is 'subsidiary'. This ensures the dropdown field is properly populated with all active subsidiaries.

javascriptvar subsidiaryField = resourceFeeForm.addField({ id: 'custpage_sub', label: 'Subsidiary', type: uiModule.FieldType.SELECT, source: 'subsidiary' });

Using other values like subsidiary_list will not yield the desired results.

Expert NetSuite Support

Need help with this NetSuite issue?

SuiteScript Development consulting and configuration support

Talk to a consultant