It is possible not to display a custom field/question on a form until a specific condition has been met. This is very helpful in a number of scenarios such as
- If you ask for any dietary requirements, you could have an 'Other' option which would display a mandatory box for explaining the requirement
- If you ask if someone has a type of license, if they answer 'Yes', then you can also ask for a file upload or license number, and again, make these mandatory.
- A mandatory field is only mandatory if it is visible. This means by using this functionality you can hide a custom field until you need them to be completed
To hide a custom field, first you must navigate to the update page of the form you want to edit. Navigate to Forms > List > choose Update from the ellipses menu of the relevant form
This should lead you to the update form page as seen below
To hide a field, hover over any active custom field in the right panel, and select the ellipses menu that appears.
Next, click the Configure button. This will bring up the configuration options for this custom field.
In the configuration pop-up, the 'Visibility' tab will allow you to define what rule must be met for this custom field to be visible in the form.
A rule is constructed of 2 parts. The custom field and the condition. You must choose both to create a valid rule.
- The custom field is the field you want to test. The field you are configuring should only appear if this custom field meets the conditions of this rule
- The condition is the value of the test. You should choose/enter a value that needs to equal the users entry/choice to show this field
An example is, if you would like to show a custom field called 'Please provide more detail' if a user chooses 'Yes' from a question 'Do you have a dietary requirement'.
- The custom field is 'Do you have a dietary requirement'
- The condition is 'Yes'
You would configure this rule on the visibility tab of the 'Please provide more detail' custom field.
You can also add rules to page content. You cannot make pages appear based on a rule.
Please note: if you're using User Data fields, the visibility rules use the data that is in the User field already, not the data entered in this field on the form.