saveRecord(scriptContext)
Description |
This function runs when you save a record, after you click submit but before the form is sent. You can use this function to:
For an example, see SuiteScript Client Script Sample. |
Returns |
|
Since |
Version 2015 Release 2 |
Parameters
The scriptContext
parameter is a JavaScript object. NetSuite automatically sends it to your script's entry point.
Parameter |
Type |
Description |
Since |
---|---|---|---|
|
The current form record. For more information about CurrentRecord object members, see CurrentRecord Object Members. |
Version 2015 Release 2 |
For an example of the saveRecord 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)
- sublistChanged(scriptContext)
- validateDelete(scriptContext)
- validateField(scriptContext)
- validateInsert(scriptContext)
- validateLine(scriptContext)
- localizationContextEnter(scriptContext)
- localizationContextExit(scriptContext)