validateInsert(scriptContext)

Description

This function checks if a new line in an edit sublist is valid.

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. NetSuite automatically sends it to your script's entry point.

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