validateDelete(scriptContext)
Description |
Defines the validation function that is executed when an existing line in an edit sublist is deleted. For an example, see SuiteScript Client Script Sample. |
Returns |
|
Since |
Version 2015 Release 2 |
Parameters
The scriptContext
parameter is a JavaScript object. It is automatically passed to the script entry point by NetSuite.
Parameter |
Type |
Description |
Since |
---|---|---|---|
|
The current form record. For more information about CurrentRecord object members, see CurrentRecord Object Members. |
Version 2015 Release 2 |
|
|
string |
The sublist ID name. |
Version 2015 Release 2 |
|
number |
The number of lines to be deleted. This property is defined only when |
Version 2020 Release 2 |
For an example of the validateDelete entry point, see SuiteScript Client Script Sample.
Related Topics
- SuiteScript 2.x Client Script Entry Points and API
- fieldChanged(scriptContext)
- lineInit(scriptContext)
- pageInit(scriptContext)
- postSourcing(scriptContext)
- saveRecord(scriptContext)
- sublistChanged(scriptContext)
- validateField(scriptContext)
- validateInsert(scriptContext)
- validateLine(scriptContext)
- localizationContextEnter(scriptContext)
- localizationContextExit(scriptContext)