RE: How to add elements to serverWidget.createList(options)

I want source subsidiary  list to form .addfield.

var field = form.addField({ id : ‘custpage_subsidiary’, type : serverWidget.FieldType.SELECT, label : ‘subsidiary’,source:susidiarylist });

But I am not getting how to create subsidiary list in suitelet.

Could anyone help please?


Maira S Beginner Asked on February 24, 2023 in SuiteScript.
Add Comment
3 Answers

For that one you’re going to need to add the options yourself some the source parameter only works with records/lists.

You need to get the options and then use addSelectOption().

Intermediate Answered on February 26, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.