Control attribute visibility in a form

Available for Rapid, Core & Enterprise-3

It is possible to display attributes/questions 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 attributes until you need them to be completed

To hide an attribute, first you must navigate to the update page of the form you want to edit. Navigate to Users->Forms and choose  Update from the  dropdown of the relevant form.

Screen Shot 2020-01-23 at 12.37.37

This should lead you to the update form page as seen below

Screen Shot 2020-01-23 at 12.39.51

To hide a field, click the  Configure button next to any active attribute. This will bring up the configuration options for this attribute.

Screen Shot 2020-01-23 at 12.43.00

In the configuration pop-up, the 'Visibility' tab will allow you to define what rule must be met for this attribute to be visible in the form. 

Screen Shot 2020-01-23 at 13.18.52

A rule is constructed of 2 parts. The attribute and the condition. You must choose both to create a valid rule. 

  • The attribute is the field you want to test. The field you are configuring should only appear if this attribute 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 an attribute called 'Please provide more detail' if a user chooses 'Yes' from a question 'Do you have a dietary requirement'.

  • The attribute 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' attribute.

You can also add rules to page content. You cannot make pages appear based on a rule.