Allows a user to control whether a form component displays based on the value of a previous component.
Conditional rules can be added on each component or on a page break to control whether or not that component or page appears.
Adding Conditional rules to a Web form
For example, you may apply a rule so that when ‘Website feedback’ is selected on the Contact us form, the Message field appears.
When adding a conditional rule to a component you will need to know (or confirm) the key that is associated with the value you are applying the rule to. For select options, the default keys for options are numbers starting with 1 for the first option, but these keys can be changed in the select options field settings.
- From the Webform tab click the Conditionals button.
- Click the button to add a new conditional rule.
- In the dropdown to the left of If, select I am contacting Zoology about.
- Enter 4 in the empty field at the end of the line.
- After then, select show in the first dropdown and Message in the second dropdown.
- Note the key associated with ‘Website feedback’.
Note: key values are case sensitive.
Note: if a required field is hidden by a conditional rule, it will no longer be required.