You can use the dependency field on the form that can help you show/hide other fields on the form.
There is also the option for
Dynamic & Dependency Plugin Properties Options
How to make a field editable or displayed only if another field is filled ?