When we choose Condition (expression) in the visibility field, the system provides the option of using a condition builder to write expressions. Click the Gear icon to open the condition builder.
In the Condition Builder we can configure an expression, for example, the marriage status property value is equal married. It is possible to add multiple expressions using AND or OR. If we need to write more than two expressions, it’s better to write it as a when rule.
The Condition Builder can also be configured to reference a when rule. When we choose a when rule, it provides the option to select True or False.
Run on Client
When we use if not blank or zero, or expression, the Run visibility condition on client option appears.
What does this field mean? If this is enabled, the visibility condition fires on the client side. So at runtime, the section code comes with a markup added to the hide/show part of the screen based on the condition. If this field is disabled, the section code does not contain the hidden part and it requires that the section is refreshed which means communicating with the server to get the hidden part where the condition is satisfied.
Hence, selecting the run on client option reduces the number of server trips, but the HTML delivered to the browser is larger since it contains the extra markup. Therefore, we should try to optimize the number of server trips with the extra payload size for our particular use case.
The choice of client-side or server-side processing can have a significant impact on how the UI behaves for end users, as outlined in the following table:
If run on client is not selected a server side refresh is needed.