validateLine(scriptContext)

Description

This function checks if a new line is valid before it's added to an inline editor sublist or editor sublist.

This event works like a saveRecord event for line items in these sublists.

For an example, see SuiteScript Client Script Sample.

Returns

true if the sublist line is valid and the addition 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 validateLine entry point, see SuiteScript Client Script Sample.

Related Topics

General Notices