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

October 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 make fields required only when necessary.

Our demo will be a simple Dance Registration Form.

Dance Registration Form

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…

  1. Go to the Settings tab in the Form Builder.
  2. Click Conditions on the left.
  3. Add a new condition and select Enable/Require Field.
Enable/Require Field condition
  1. Next, set up the condition and action. In our example form, the Conditional Logic would be as follows:
will you come with a partner condition

To break that down:

  • We’ve set the condition or IF statement to check if the “Will you come with a partner?” question is equal to “Yes”
  • The action or DO statement will set the “Partner’s Name” field to required if the condition is met
  1. Click the Save button to save the changes.

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:

  • Santosh Sakre
  • Lisa Sutton
  • bartina87
  • selectability
  • friendlyneighbourhotline
  • mouna_zreikat
  • mouna_zreikat
  • littlebird_db
  • darrenerb
  • smiddleton
  • benpalm
  • seotony
  • pianospheres
  • mikeBWD
  • TrishBoaz