Conditional navigation
A conditional navigation only happens when a rule is true: go to the approval page if the quote's status is "Sent", otherwise stay , or when the page opens, send signed-in customers to the portal . On the Storyboard such navigations are drawn as dashed edges with an italic label
A conditional navigation only happens when a rule is true: go to the approval page if the quote's status is "Sent", otherwise stay, or when the page opens, send signed-in customers to the portal. On the Storyboard such navigations are drawn as dashed edges with an italic label that reads the rule (If status is "Sent"). Under the hood the navigation action sits inside an If / else action on the component.
When to use
- Redirect on page load depending on the visitor (signed in or not, role, a state value).
- Open a different page from one button depending on the record (If status is "Draft" → Edit, Unless → View).
- Skip a step when data is already there.
For "this role may not open that page" use page access and component permissions, not conditions; see Role-based navigation.
Add a condition in the Storyboard
- Select the edge (or create it with drag-to-connect / Link to page).
- Under Only when, click Add condition. A row has a dynamic value on the left (pick from the data picker: Current user › isAuthenticated, Event › record › status, Page parameters › id, App state › …), an operator, and a value on the right (fixed or dynamic).
- Add more rows and choose All must match or Any can match.
- Leave the box empty to navigate always.
Operators: is, is not, >, ≥, <, ≤, contains, doesn't contain, starts with, is empty, is not empty, is one of, is not one of.
How it is stored
The Storyboard wraps the navigation in an If / else action whose then branch contains only the navigation. The edge label becomes If …; if the If / else also has an else branch with its own navigation, that edge is labelled Unless …. When a navigation is part of a larger If / else (other actions in the same branch, or nested conditions), the edge inspector says so and sends you to Build → Actions to edit it.
Example: redirect customers on the home page
Home (When the page opens):
If Current user › role is "Customer"
→ Go to page: Portal dashboard (replace history entry)In the Storyboard this is a dashed edge If user role is "Customer" from Home to Portal dashboard. The Connect pages dialog creates it in one step: trigger Page (when it opens), target Portal dashboard, condition as above.
Journeys and reachability
Conditional edges count as navigation: a page reached only through a condition is reachable. In User journeys they rank below unconditional buttons, and the alternative is listed as or ….
Common mistakes
- Using a condition instead of permissions to hide a page: the page is still sent to the browser; use page access.
- Comparing with the wrong type: text and numbers are compared sensibly (numeric strings count as numbers, text is case-insensitive), but a select option's value may differ from its label; compare with the value.
- Conditions on values that are empty for some visitors: an empty left side fails most operators; add is not empty first, or use Any can match.