validateInsert(scriptContext)

Description

Defines the validation function that is executed when a sublist line is inserted into an edit sublist.

For an example, see SuiteScript Client Script Sample.

Returns

true if the sublist line is valid and the insertion is successful.

false otherwise.

Since

Version 2015 Release 2

Parameters
Note:

The scriptContext parameter is a JavaScript object. It is automatically passed to the script entry point by NetSuite.

Parameter

Type

Description

Since

scriptContext.currentRecord

currentRecord.CurrentRecord

The current form record.

For more information about CurrentRecord object members, see CurrentRecord Object Members.

Version 2015 Release 2

scriptContext.sublistId

string

The sublist ID name.

Version 2015 Release 2

For an example of the validateInsert entry point, see SuiteScript Client Script Sample.

Related Topics

General Notices