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?
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().