Drive a field with a rule: visibility, items, error — gull system handbook

Dynamic field properties in gull system: Visible, Enabled, Items, Error, Default value, MIN and MAX driven by a rule, and what a broken rule does.

Drive a field with a rule: visibility, items, error

Every value in the Behaviour group, plus the default value, MIN and MAX, can be a rule instead of a number. The orb next to the row switches it.

The orb: static value or rule

What can be driven

Field rules read the form's other fields by name (`[Type] = "A"`), the form variables and the name of a Steps element, which returns the label of the page on show. Library tables are available too.

Examples

A hidden field sends its default value. Hiding is about the screen, not the order. When a container or a Steps page disappears, everything inside goes with it — the parent wins.

A field that vanished because of a broken rule is one you would never see — which is why a broken rule leaves the field visible. To know a rule is failing, test it in the editor: green is valid, red is not, and Evaluation → Steps shows where it fails.