Field function

About Field functions

You use a Field function to get an editor field in order to change its graphical attributes.

getField(name)

Description

Returns a field.

Restriction: It can be used only in Change Field rules.

Syntax getField(name)
Return

Field with the specified name.

Parameters name: Name of the editor field that correspond to the property name.
Example

This example sets PROP2 as visible only if PROP1 is “A”:

Definition

f1 = getField(“PROP2”)

if obj.PROP1 = “A”

then

f1.visible = true

else

f1.visible = false

Related Links