Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Need to Sublist based on the Field selection as line level.
Page: Purchase order
Action Required: Add a drop-down and update on filed change on line label
(1) Using userEvent script drop down is added on line label “before load” ( script 1.0 )
var fld_Project_task=obj_Sublist_Item.addField(‘custpage_project_task_list’, ‘select’, ‘Task List Based on Project’,”);
fld_Project_task.addSelectOption(‘0’, ‘<Tab The Project To Select The Task>’);
fld_Project_task.setMandatory(false);(2) Now , on line label whenever we change the project list (drop-down), then drop-down will be updated based on selected project ( client script-2.1 )
//–Clear the old value in “TASK list” drop-down
let taskListObj=current_record.getSublistField({sublistId:sublistName,fieldId:’custpage_project_task_list’,line:line_number});