Overview
In order to control when users can see certain fields or sections of a form, it is important to understand how to utilize the Visibility properties within the form controls.
For this scenario, there will be a very simple example that is based on the weather.
Default Presentation Properties
For any given field on your form, there are three options for visibility
True: the field is always going to be visible
False: the field is not going to be visible
Calculation: the field will be conditionally visible based on the value or status of other fields
Example Visibility Scenario
In our weather example, one field will become visible dependent on the value of a different field.
The form has two fields:
Field 1: Was the weather nice today?
Boolean field
Field 2: What was the temperature today?
Integer field
For the example, Field 2 should be visible ONLY when Field 1 has the value of True.
Visibility Calculation
We'll select "calculation" from the dropdown for the Visible control.
This is all that needs to be set in the calculation window. Remember, Field 2 should only be visible when Field 1 is true.
When creating a form in the inbox this is what it should look after saving that calculation:
When "True" is selected for Field 1, the form should look like the following. This makes sense, because it is expected to see Field 2, when the value of Field 1 is True.
When "False" is selected for Field 2, the form should look like the following. This makes sense, because it is expected to NOT see Field 2, when the value of Field 1 is False.
Form Field Validations
Using visibility to hide a field won't stop the user from running into any validations on that field. Use enabled=false combined with hide while disabled=true for true hiding fields which have validations on them.