What are conditional fields?
Conditional fields allow you to manage sets of dependencies between fields. Such fields are available for editing and display only if the right condition is met. To create conditional fields, you must first create custom fields and then leverage such fields in forms.
How do you create a conditional form in HTML?
Conditional elements are supported in HTML Forms by using two special attributes: data-show-if and data-hide-if . Using these attributes allows you to hide or show parts of your form by referencing the name attribute of a field in your form.