Interlude.Behavior.VisibleIf
In Depth¶
Behavior.VisibleIf(element, condition)
Shows the element only while the condition holds. A hidden element takes up no space, is never validated, and never blocks submission — but its value still appears in the results.
The inputs are:
element(FormElement) — The element to control.condition(ConditionExpr) — Built with the Condition nodes.
Returns element — A copy of the element with the condition attached.
Search terms: visible, show, hide, conditional, visibleif.
About the Behavior nodes¶
Adds behaviour to an element: when it is visible, when it is enabled, when it is required, what makes it valid, and what its value is computed from.
Every node here returns a new element rather than changing the one it was given. Elements are values, so the same element can be fed into two different behaviours without one of them affecting the other, and re-running a graph rebuilds the tree from scratch with nothing left over from last time.
Example File¶
An example graph ships beside this page: Interlude.Behavior.VisibleIf.dyn

The form it builds:
