postSourcing(scriptContext)

Description

Defines the function that is executed when a field that sources information from another field is accessed (that is, clicked). In some cases, this entry point is triggered as soon as a field is clicked upon. In other cases, it is triggered only after the contents of the field are changed.

This event behaves like a fieldChanged event after all dependent field values have been set. The event waits for any cascaded field changes to complete before calling the user defined function.

Executes on transaction forms only.

For an example, see SuiteScript Client Script Sample.

Note:

The event is not triggered by field changes for a field that does not have any cascaded fields.

Returns

void

Since

Version 2015 Release 2

Parameters
Note:

The scriptContext parameter is a JavaScript object. It is automatically passed to the script entry point by NetSuite.

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

scriptContext.fieldId

string

The field ID name.

Version 2015 Release 2

For an example of the postSourcing entry point, see SuiteScript Client Script Sample.

Related Topics

SuiteScript 2.x Client Script Entry Points and API
fieldChanged(scriptContext)
lineInit(scriptContext)
pageInit(scriptContext)
saveRecord(scriptContext)
sublistChanged(scriptContext)
validateDelete(scriptContext)
validateField(scriptContext)
validateInsert(scriptContext)
validateLine(scriptContext)
localizationContextEnter(scriptContext)
localizationContextExit(scriptContext)

General Notices