Conditions for large number of fields

  • TheRecClub
    Asked on January 2, 2016 at 3: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!

  • Charlie
    Replied on January 2, 2016 at 8: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.

    14517405972016 01 02 21 11 35 Screenshot 10

     

    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".

    14517406872016 01 02 21 12 18 Screenshot 21

    3. Repeat the steps for the other ones.

    14517407452016 01 02 21 15 29 Screenshot 32

     

    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.

  • TheRecClub
    Replied on January 2, 2016 at 2: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!

  • Kevin Support Team Lead
    Replied on January 2, 2016 at 8: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.