Available: setField() v1.127.0

The setField() function is available from v1.127.0

Takes two expressions — target and value — and sets the field named by the result of the target expression to the result of the value expression.

Can be used to manipulate fields whose names are not statically known, but computed at runtime.

ParameterTypeRequiredDefault ValueDescription
targetexpressionrequired __setField Evaluates the name of the field to set.
valueexpressionrequired   An expression whose result becomes the value for the field.

setField() Examples

Click + next to an example below to get the full details.

Set the Value of a Field

Set Values for Multiple Fields