You can configure field logic on a form to show or hide upcoming form sections based on a form-taker's previous selection.
To add field logic
Add a Selection Set field to your form. This can be a custom attribute or form field, and it must come before the hidden field. Field logic applies to each field individually, not to an entire section. For more information on adding and configuring form elements, see Creating and configuring forms.
In the example below, the selection set is the Do you have dietary restrictions? field. The hidden field is the If yes, please explain. text field. This field should only display if a form-taker selects Yes in the selection set field.
Select the field you want to impact — the hidden field. In this example, that's the If yes, please explain. text field. Toggle ON Enable field Logic, then select Edit Field Logic.
Since Yes is selected in the Field Logic window, the If yes, please explain. text field only displays if a form-taker selects Yes in the Do you have dietary restrictions? selection set field. If they select No, this field doesn't display, and the form-taker can proceed through the form as normal.