I want to add item list as a select option. when user start to enter item name, Related items name shows in dropdown list.
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