What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Conditions for large number of fields

    Asked by TheRecClub on January 02, 2016 at 03:10 AM

    I have a form that records four field sets for each attendee of a party. Then, if required (yes/no question) they can add another person.

    I've potentially got eight people on the form. 

    What's the best way to hide sets 2-8 until the user selects "Yes" to add another person? And so on for the others.

    So, I want the form to initially display one set of fields (person 1) and then, if required, the user can add others (up to eight). 

    I understand the conditions and adding conditions, but I wonder if I'm missing a method to hide fields easily?

    thanks!

    Page URL:
    https://form.jotform.com/60011386941955

    large field sets hide fields thanks then
  • Profile Image
    JotForm Support

    Answered by Charlie on January 02, 2016 at 08:23 AM

    I would like to suggest using the form collapse tool to easily organize the fields you want to hide or show, here's a guide that you can refer to: http://www.jotform.com/help/297-Show-or-Hide-multiple-fields-at-once-using-form-collapse-tool 

    I cloned your form for demo purposes, you can check how it works here: https://form.jotform.com/60013860312946. You can clone my cloned form to have a copy of it in your account by following this guide: http://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL 

    Here's how I setup mine:

    1. Add form collapse tool to group each child section.

     

    2. I'll then use conditional logic to only show the form collapse when the "Add another child?" question before it is set to "Yes". Here's an example:

    IF the "Add another child?" from the first child is set to "Yes", then show the form collapse field titled "Child 2 Section".

    3. Repeat the steps for the other ones.

     

    Note: When the rules are not met to show the fields, they are automatically set to hidden. So no need to use conditional logic to hide them.

     

    Do let us know if you need further assistance on this.

  • Profile Image

    Answered by TheRecClub on January 02, 2016 at 02:11 PM

    Wow! Many thanks Charlie. That Collapse tool is EXACTLY what I need.

    I haven't seen it before (it must be new since I created this form a few years ago) but it's going to be incredibly useful. 

    Thank you again!

  • Profile Image
    JotForm Support

    Answered by Kevin_G on January 02, 2016 at 08:04 PM

    Hi,

    On behalf of my colleague Charlie, you're most welcome.

    Please, feel free to contact us anytime if you need more help, we will be more than glad to assist you.

    Regards.