Visibility rules
A visibility rule determines whether a building block or a step is shown. Content without a rule is always shown when it belongs to the active step.Add a rule to a building block
- Select the building block.
- Find Visibility in the right-hand panel.
- Choose Only when….
- Choose a field, a comparison, and a value.
Comparisons
| Option | Use when |
|---|---|
| is / is not | values must be equal or different |
| is greater than / is at least | numbers or dates must be above a threshold |
| is less than / is at most | numbers or dates must be below a threshold |
| contains | a text or list must contain a value |
| is empty / is not empty | the presence of a value is enough |
Multiple rules
Choose whether all rules must be true, or whether at least one is enough. The advanced view can build:- a single comparison;
- an AND group;
- an OR group;
- a NOT rule that reverses the result.
Data sources in rules
The left and right side can use record fields, association counts, external data, form answers, the selected associated record, step info, and card info. Row fields can be used on blocks inside a repeater. Watch out for types. The text10 and the number 10 can come from different systems, and an empty value is not the same as the number 0.
Conditional steps
Each step can have its own visibility rule. A hidden step is skipped. The first visible step becomes the starting step, and navigation only works with visible steps. If all steps are hidden, the flow has no active step. Make sure there is at least one unconditional fallback step, or rules that cover every case between them.Conditional actions
The Conditional branch action type uses the same rule model, but controls which actions run in the “true” and “otherwise” branches. See Actions.Good patterns
- Combine an Alert with a rule, for example when a date has passed.
- Show an Empty state when a list or a count is empty/0.
- Use a form answer to reveal follow-up fields on the same step.
- Prefer one readable rule over several overlapping rules on neighboring blocks.