With the extension Conditional fields you can add conditional logic to your forms.
In some cases you may need to show additional fields only when certain conditions occur. This allows you to store only the data you need based on the circumstances.
With this addon you can choose which fields show or hide based on the values of other inputs, or you can also choose to disable some fields(useful for example in the case of submit buttons).
The forms will change dynamically based on the data entered by the user.
You can also add more than one rule and choose whether all or only one must be followed.