How to Make a Field Required Based on User’s Answer

March 21, 2022

Sometimes, you will want to have your form communicate with your users as they fill it out. The reasons for that are many and conditional logic is here to help you. In this guide, you will see how you can manipulate the required field option through conditions to make fields required only when necessary.

Our demo will be a simple Dance Registration Form.

form-sample-dance-registration

Usually, the form will only be filled out by one person, but the respondents should also have an option to register two if they wanted to bring a partner.

This means that if someone is to register themselves only, they do not need to provide a full name for their partner, but if they are bringing their partner with them, we need to know at least their name.

To set it up, click Settings at the top, Conditions on the left, then select Enable/Require Field.

form-builder-conditions-enable-require-field

Afterward, set up the condition so we know the partner’s name if the respondent will bring one.

conditions-sample-if-partner-is-yes

And that’s it!

Comments and suggestions are welcome below. If you have a question, post it in our Support Forum so we can assist you.

Was this guide helpful?
Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments: