postSourcing(scriptContext)

Description

This function runs when you click a field that gets its info from another field. Sometimes this happens as soon as you click the field. Other times, it happens after you've changed the field's value.

This event works like fieldChanged event after all dependent field values have been set. It waits for all the related field changes to finish before running your function.

This only works on transaction forms.

For an example, see SuiteScript Client Script Sample.

Note:

If a field doesn't have any related fields, this event won't be triggered by changes to that field.

Returns

void

Since

Version 2015 Release 2

Parameters
Note:

The scriptContext parameter is a JavaScript object. NetSuite automatically sends it to your script's entry point.

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

General Notices