You use the Condition form element to create a form that responds to user input. This turns your form into a dynamic form. As a result, you can have the form show form elements to the user only if these are relevant, for example, while form elements that are not relevant are hidden. If a certain condition is fulfilled, you can also specify that entire form pages should be skipped or that an input field becomes a required field. By using conditions, you can ensure that the forms you create remain clearly structured and adapt dynamically to the needs of your users.
For example, you might be creating a form that asks users whether they want to receive more information about your product by email or post. If they want to receive this information by email, you do not need to ask them for their address details. If a user chooses ‘post’, however, form elements are then shown for entering the details of their postal address. How these address elements behave therefore depends on the input made in other form elements.
Without conditions, the form would simply show all of its form fields all the time. Whether or not your users select the email or post option, this would not affect what is shown in the form.
In the screenshots that follow, you can see the same form with conditions. Here, users are only shown what is relevant for them.
This section shows you how to specify the criteria that need to be fulfilled to trigger a condition and the action or outcome that should then result.
Under the If section, select the form element and the criterion that needs to be met so that the action in the next section under Then is accordingly triggered.
Under Then, you specify which action is carried out when the criterion specified under If has been met.