How to Show or Hide Fields Based on User’s Answer

Last Update: 

You can use the Show/Hide Field conditional logic if you need to show or hide questions on your form depending on the user’s answer.

As an example, this demo form is configured to show a follow-up question to the “Would you like any dessert?” question if the answer is “Yes.”

A screenshot of Form Builder with highlights to the "Would you like any dessert?" and "What kind of dessert do you have in mind?" questions

Here’s how to set it up:

  1. In Form Builder, click on Settings at the top.
  2. Choose Conditions on the left.
  3. Add a new condition and select the Show/Hide Field option.
Steps to add a Show/Hide Field condition in Form Builder
  1. Set up the rule in the next window.
A Show/Hide Field rule in Form Builder

In the example form, the conditional logic is as follows:

  • IF: Would you like any dessert?
  • STATE: Is Equal To
  • VALUE: Yes
  • DO: Show
  • FIELD: What kind of dessert do you have in mind?
  1. Click on Save at the bottom to save the changes.

You can add as many rules as needed. You can also show or hide multiple fields at once. Check out the following guides to learn more:

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:

  • Webmaster - Profile picture
  • Jessica - Profile picture
  • Jodie Vorster - Profile picture