How to Show or Hide Fields Conditionally

January 14, 2026

With Show/Hide Field conditional logic, you can make your form feel smarter by showing or hiding fields based on how someone answers a question. This helps keep your form clean and focused, so users only see what’s relevant to them—making the whole experience quicker, clearer, and more enjoyable to fill out.

Showing or Hiding Fields Conditionally

In this example, we’ll walk you through how to set things up so a field appears only when a user chooses a specific answer. It’s a simple way to make your form more responsive and personalized—here’s how it works step by step:

  1. On your Workspace page, click on Type at the top, and in the Dropdown menu that opens, uncheck the boxes next to all the assets except Forms, so only they’ll be shown on the page.
Workspace page showing the Type dropdown menu with all asset types unchecked except Forms to display only form assets
  1. Now, hover your mouse over the form you want to manage, and click on Edit Form on the right side of the page.
Workspace showing a user hovering over a form and clicking the Edit Form button on the right side
  1. Next, in Form Builder, in the orange navigation bar at the top of the page, click on Settings.
  2. In the menu on the left side of the page, click on Conditions.
  3. Then, in the New Condition menu, click on Show/Hide Field.
Form Builder Settings page showing the Conditions menu with the New Condition option Show/Hide Field selected
  1. Now, in the Show/Hide Field section, configure these fields to set an If rule for your condition, and then set Do to Show or Hide the selected Field:
    • IF — Select a supported form field whose value or status will determine when the condition triggers. You can use the Search bar at the top of the menu to find a specific one easily.
    • STATE — Select the status that the condition should check for in the field you chose. You can use the Search bar at the top of the menu to find a specific one easily.
    • TARGET — This appears when the selected status is neither Is Empty nor Is Filled. Select whether you want to compare the value or selection of the field you chose to a specified value or to the value of another field.
    • VALUE — This appears when Value is selected as the target. Enter a specific text that the selected field’s value will be compared to.
    • DO — This defines the action that should happen when the condition is met. For the Show/Hide Field, it either make a field appear or disappear.
    • FIELD — This appears when Field is selected as the target. Choose the field whose value will be compared to the field you selected in the If Dropdown menu. You can use the Search bar at the top of the menu to find a specific one easily.
  2. Once done, click on Save.
Form Builder showing condition rules configured to Show a selected field, with the Save button highlighted

You’re all set. Below is an example of what your form will look like from a user’s point of view when the condition you set is met, showing the relevant fields right when they’re needed. Check out this demo to see exactly how it works in action. In this example, the condition is as follows:

Form Builder displaying an example condition setup showing which field is affected and the condition logic applied

Jotform’s Show/Hide Condition is a great way to gently guide users through your form and keep things focused and relevant. By showing only the fields that matter based on their answers, you can create a smoother, more personalized experience from start to finish—without overwhelming them with unnecessary questions.

Note

You can add as many rules as you like and hide or show as many fields as needed to match your form’s flow. This gives you full flexibility to fine-tune the experience, so users only see what’s relevant to them at each step and can move through your form with ease. You can check the guide about How to Hide or Show Multiple Fields Conditionally and How to Show or Hide Multiple Fields Conditionally With Section Collapse to learn more.

Pro Tips

  • Try not to overload your form with too many conditions—having too many rules can make it tricky to troubleshoot or update later.
  • Use clear and descriptive field names when working with lots of conditions. This makes managing and editing your logic a breeze.
  • Double-check your IF and DO statements when setting conditions. Even a small slip, like picking the wrong field or condition type, can change how your form behaves.
  • After setting up your conditions, test your form in Preview mode. Try out different scenarios to make sure everything works exactly as you want.
  • Avoid creating conditions that depend on each other in a loop—it can confuse your form and lead to unexpected results.
  • Keep in mind that matching text values in conditions is case-sensitive, so make sure your expected inputs match exactly.
  • Show/Hide conditions pair perfectly with calculation fields, form collapse sections, and page breaks, helping you create a more dynamic and interactive form experience for your users.
Academy Logo

Introduction to Form Building

Adding Conditional Logic Elements

Go to course :Adding Conditional Logic Elements
lesson-2 - image

Send Comment:

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

Comments:

  • Richard Shafer - Profile picture
  • Madeline Crawford - Profile picture
  • Mariana Pacheco - Profile picture
  • Su Mariani - Profile picture
  • Gaurav Bhimarao Magare - Profile picture
  • Webmaster - Profile picture
  • Jessica - Profile picture
  • Jodie Vorster - Profile picture
Still have unanswered questions?

We’re here for you 24/7, anytime you need us day or night. Have a question or need a hand with something? Our team is always ready to help out.