Add and manage multiple conditions
Authors can also add multiple conditions to a Span from the Show/Hide Span screen to build more complex logic. When you open the Show/Hide span screen, you will see the first condition card labelled "Condition #1" and an
Add condition
button below it.
Clicking
Add condition
creates a new condition card labelled with the next number in sequence. Between each condition, an
And/Or
toggle appears, defaulting to "And", which lets you control how the conditions work together.
Once all the conditions are applied, click
Apply
to save conditions. In
Basic mode
, all conditions must be valid before you can apply changes; errors prevent the Span from being applied. In
Advanced mode
, you can still apply the expression even if validation errors exist in Basic mode. The Span appears in the questionnaire only when all conditions are met.
Expanding and collapsing conditions
Each condition card can be expanded or collapsed using the arrow button on the right side of the card header. When you have multiple conditions, they will all appear collapsed by default when you open the screen. If there is only one condition, it will appear expanded. Any condition with a validation error will always appear expanded so you can address it.
When a condition is collapsed, a summary is shown in the format; Variable, Operator, Value. For example, "GuarantorAddressIncluded is true", providing authors a quick overview of the condition at a glance.
You can delete a condition by clicking the Delete icon on the condition card. The Delete button is only available when more than one condition exists. After a deletion, the remaining conditions are renumbered automatically, and the associated And/Or operator is removed along with the deleted condition.
Editing variables in a condition
If you open the Edit Variable form within a condition, it will remain open until you collapse the condition card, close the form manually, or leave the page. The Edit Variable form works independently for each condition, so changes in one condition do not affect the others.