Nour Khaled
04/17/2025, 9:28 AMCeligo AI
04/17/2025, 9:28 AMAI generated answer (using internal Slack threads):To add a select field in a Suitelet where the source is the subsidiaries list in NetSuite SuiteScript, you can use the
Form.addField
method and set the source
parameter to 'subsidiary'. Here is a sample code snippet:
javascript
var form = serverWidget.createForm({
title: 'My Form'
});
var subsidiaryField = form.addField({
id: 'subsidiary',
type: serverWidget.FieldType.SELECT,
label: 'Subsidiary',
source: 'subsidiary'
});
In this code, a form is created using serverWidget.createForm
, and then a field is added to the form using form.addField
. The source
parameter is set to 'subsidiary', which means the select options for this field will be populated with the list of subsidiaries.
Please note that the source
parameter can be an internal id number, which uses the same options as the List/Record
field when you create a custom field in the UI, or it can be some text type that NetSuite doesn't really document.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
04/17/2025, 9:28 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841347575
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835997701
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833853424
Celigo AI
04/17/2025, 9:28 AM