Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
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});