Visibility Rules
The Construction panel allows you to configure dynamic visibility rules for Smartform elements. This gives you the ability to show or hide elements depending on user input or predefined conditions — making your forms more interactive and context-aware.
How Visibility Rules Work
Visibility rules are applied to specific elements within your Smartform. Each rule defines a condition that must be met, and an action that is triggered when the condition is true.
Example Use Case
You might want to show a descriptive text element depending on which insurance type the user selects in a dropdown. For example, selecting “Car Insurance” could display detailed information about car coverage. With a visibility rule, you can control that logic automatically.
Creating a Visibility Rule
To add a new visibility rule:
- Go to the Smartforms tab.
- Open the Construction section.
- Click on Visibility Rules.
- Fill in the following fields:
Rule Name
A friendly name for your rule, e.g. "Show Car Insurance Info".
Element To Control
Choose the element in the Smartform that should be shown or hidden when the condition is triggered. Example: TextElement.
Rule Conditions
Specify the logic that should be checked. Each rule consists of:
- Element – The input field to evaluate (e.g. a dropdown or input element)
- Condition – The type of check to perform
- Value – The value to compare with
You can add multiple conditions using the + And or + Or buttons.
Supported Conditions
Text ContainsText Not ContainsText MatchesText Not MatchesBoolean Is TrueBoolean Is False
Example condition:
insuranceType Text Matches Car Insurance
Action to Take
Choose the action that should happen when the condition is met:
Show– Displays the elementHide– Hides the element
You can also combine multiple visibility rules on the same element to support more advanced logic. For example, show different informational text blocks depending on whether the user selected "Car Insurance", "Travel Insurance", or "Business Insurance" from a dropdown menu.
Viewing Existing Rules
All configured rules are listed in a table at the bottom of the Visibility Rules section. This includes:
- Rule name
- Controlled element
- Condition
- Action (visibility)
You can edit or delete any rule using the icons on the right.