pageInit(scriptContext)
The content in this topic applies to SuiteScript 2.0 and SuiteScript 2.1.
Description |
Defines the function that is executed after the page completes loading or when the form is reset. The following sample tasks can be performed:
For an example, see SuiteScript Client Script Sample. |
Returns |
void |
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 mode in which the record is being accessed. The mode can be set to one of the following values:
|
Version 2015 Release 2 |
For an example of the pageInit entry point, see SuiteScript Client Script Sample.
Related Topics
- SuiteScript 2.x Client Script Entry Points and API
- fieldChanged(scriptContext)
- lineInit(scriptContext)
- postSourcing(scriptContext)
- saveRecord(scriptContext)
- sublistChanged(scriptContext)
- validateDelete(scriptContext)
- validateField(scriptContext)
- validateInsert(scriptContext)
- validateLine(scriptContext)
- localizationContextEnter(scriptContext)
- localizationContextExit(scriptContext)