Vishal Chaudhari
02/26/2026, 1:08 AMCeligo AI
02/26/2026, 1:08 AMAI generated answer (using internal Slack threads):To add a blank first option in a list, you can use the
addSelectOption method in SuiteScript. You would need to add a blank option and set 'isSelected' to true. This will ensure that when the form loads, no option is pre-selected and the first option is blank. Here is a sample code snippet:
javascript
var selectField = form.addField({
id: 'custpage_selectfield',
type: serverWidget.FieldType.SELECT,
label: 'Select Field'
});
selectField.addSelectOption({
value: '',
text: '',
isSelected: true
});
In this code, addSelectOption is used to add a blank option to the select field. The value and text properties are set to an empty string to make the option blank, and isSelected is set to true to make this option the default selection.
Remember to replace 'custpage_selectfield' with the actual ID of your select field.
******
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
02/26/2026, 1:09 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.814270139
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.793151855
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.792785645
Celigo AI
02/26/2026, 1:09 AM