Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. 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});