Search code examples
netsuitesuitescript

How to create item list as a select field in suitelet 1.0


I want to add item list as a select option. when user start to enter item name, Related items name shows in dropdown list.


Solution

  • First create a list and get the internal ID. For example the internal id is 36

    form.addField('myselectfield', 'select', 'my label', '36');
    //here 36 is the internal id of the list you created