setFieldValue

Usable on NewEdit pages and parameter pages. Updates the value of the given input field.

If you have fields X, Y, and Z, where field X has an onChange-script that calls setFieldValue to change Y, and Z has a control dependency on both X and Y then the behavior is undefined. In general, you should try to avoid calling setFieldValue from an onChange-script.

Usage

setFieldValue(fieldname, value)

Parameters

fieldname : String

The field's name. Is no field with this name exists on the current input page then behavior is undefined.

value : object

Value to assign to the field.