In NetSuite, the ‘Add Multiple’ button action, which allows users to add multiple items to the item sublist at once, does not trigger the client script’s events or entry points. This means that if you have a client script attached to the record, the functions defined in the client script (such as validateLine, fieldChanged, lineInit, sublistChanged, postSourcing, validateInsert, and validateDelete, etc.) will not be triggered when using the ‘Add Multiple’ button.
Similarly, the client script entry points do not trigger the population of the group items component. The group items component is a specific feature in NetSuite that allows users to group items together for easier management and selection. The population of the group items component is typically handled by NetSuite’s built-in functionality and does not trigger the events or entry points of the client script.
If you require custom logic or validations to be applied when using the ‘Add Multiple’ button or when populating the group items component, you may need to explore alternative approaches. One possible solution is to use User Event scripts or SuiteScripts (Server-side scripts) instead of Client Scripts. User Event scripts have access to the ‘Add Multiple’ functionality and can be triggered on record creation or modification events. SuiteScripts, particularly beforeSubmit or afterSubmit, can be used to handle more complex logic when items are added or modified.
By utilizing User Event scripts or SuiteScripts, you can achieve the desired customization and perform necessary validations or actions in scenarios involving the ‘Add Multiple’ button or the population of the group items component.
Demerits of the user event script.
In real-time operation for validating sublist in client script validateLine, fieldChanged, lineInit, sublistChanged, postSourcing, validateInsert, and validateDelete are not performed in the serverside script.