NS AdminA
03/04/2025, 5:01 PMCeligo AI
03/04/2025, 5:01 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems that adding a multiple select field to a transaction column line via script is not directly supported in NetSuite. However, there is a workaround that involves creating a temporary field and populating it with select options using a User Event (UE) script. Here's a sample code snippet:
javascript
let field = form.addField({
id: "custpage_myNewList",
type: serverWidget.FieldType.SELECT,
label: "My New List"
});
field.addSelectOption({value: 1, text: 'Some Value'});
This code creates a new field and adds a select option to it. You can add as many options as you need.
However, there are a few limitations to this approach:
1. The temporary field will be added to the end of the transaction line item row by default, and there's no way to change its position.
2. When you add select options to a field in a sublist, the options are added to every line item. It's not possible to add different dropdown values for each line.
Remember to capture the value from the temporary field and set it in the 'real' field before submitting the form.
******
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
03/04/2025, 5:02 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.814522684
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.810313344
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.805851519
Celigo AI
03/04/2025, 5:02 PM