SuiteScript 2.x Client Script Entry Points and API

Script Entry Point

Description

fieldChanged(scriptContext)

Defines the function that is executed when a field is changed by a user or client call.

lineInit(scriptContext)

Defines the function that is executed when an existing line is selected.

localizationContextEnter(scriptContext)

Defines the function that is executed when the record enters the localization context that is specified on the script deployment record.

localizationContextExit(scriptContext)

Defines the function that is executed when the record exits that context.

pageInit(scriptContext)

Defines the function that is executed when the page completes loading or when the form is reset.

postSourcing(scriptContext)

Defines the function that is executed when a field that sources information from another field is modified. Executes on transaction forms only.

saveRecord(scriptContext)

Defines the function that is executed when a record is saved (after the submit button is pressed but before the form is submitted).

sublistChanged(scriptContext)

Defines the function that is executed after a sublist has been inserted, removed, or edited.

validateDelete(scriptContext)

Defines the validation function that is executed when an existing line in an edit sublist is deleted.

validateField(scriptContext)

Defines the validation function that is executed when a field is changed by a user or client call.

validateInsert(scriptContext)

Defines the validation function that is executed when a sublist line is inserted into an edit sublist.

validateLine(scriptContext)

Defines the validation function that is executed before a line is added to an inline editor sublist or editor sublist.

Related Topics

SuiteScript 2.x Client Script Type
SuiteScript 2.x Client Script Reference

General Notices