when calling ui/serverWidget.Form.addField, what s...
# ask-stanley-ai
a
when calling ui/serverWidget.Form.addField, what source should I use to populate a SELECT type field with all the Custom Forms that can be selected for a given transaction type?
c
AI generated answer (using internal Slack threads):
To populate a SELECT type field with all the Custom Forms that can be selected for a given transaction type, you should use the internal id of the
List/Record
field that you get while creating a custom field in the UI. Here is an example of how you can do this:
Copy code
javascript
var customFormSelect = form.addField({
    id: 'custpage_formid',
    type: serverWidget.FieldType.SELECT,
    label: 'Custom Form',
    source: 'customform' // This is the internal id for Custom Forms
});
In this example, 'customform' is the internal id for Custom Forms in NetSuite. This will populate the SELECT field with all the Custom Forms that can be selected for a given transaction type. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.849992573
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837823272
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831542611
Please provide your feedback on this answer.
Thank you for your feedback
a
I tried "customform", but it came up blank