Show or Hide Multiple Fields at Once Using the Section Collapse Element

April 6, 2023

The Section Collapse element can hide or show sections of your form and also splits your form into expandable parts.


In this guide, we’ll create a form using the Section Collapse element to group fields together and then show or hide them based on the user’s answer using conditional logic. Let’s start.

  1. Add the fields to your form then insert a Section Collapse element at the beginning of the fieldset.

Let’s call it the “Additional Information” section.

  1. Set the Section Collapse element’s visibility to Visible.

There are two important Section Collapse properties:

  • Section Visibility – allows you to set the section and contents to be hidden (collapsed) or visible (expanded) by default when the form loads.
  • Button Visibility – allows you to hide or show the collapse button or bar used to manually toggle the section contents’ visibility on the form.


A Section Collapse encompasses all succeeding form elements, except another Section Collapse.

  1. Insert a Section Collapse element at the end of the fieldset. Set its Section Visibility to “Visible” and Button Visibility to “Hidden”.

This will act as the stopper or the section’s end.

  1. Add a trigger question for the Conditional Logic to show or hide the section.

Next is to set up the Conditional Logic.

  1. Go to the Settings tab.
  2. Click Conditions on the left.
  3. Add a new condition and select the Show/Hide Field option.
  1. Set up the condition and action in the next window. In our example form, the conditional logic would be as follows:

To break that down:

  • We’ve set the condition or IF statement to check if the “Include additional information?” question is equal to “Yes”.
  • The action or DO statement will show the “Additional Information” section if the condition is met.
  1. Click the Save button to save the changes.

Here’s the demo form with the setup above applied:

As always, feel free to ask for assistance via the Jotform Support Forum if you encounter difficulties while implementing this solution.

Save 50%
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:

Contact Jotform Support:

Send Comment:

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


  • Giacomo Corda - Profile picture
  • The Maitland Clinic - Profile picture
  • Dave M! - Profile picture
  • Quality Quick Print - Profile picture