How to show/hide and calculate fields depending on the number of registrants?

  • Langan_Jaclyn
    Asked on April 23, 2024 at 11:50 AM

    I am trying to create a conference registration form but am unable to set condition logic I need with quantities set at 1 or greater. I'm guessing I cannot use product list to do this because of that. I need assistance with having it able to choose qualities for registrations and then have name boxes to complete pop up based off how many registrations they chose.

  • Angeli JotForm Support
    Replied on April 23, 2024 at 12:17 PM

    Hi Jaclyn,

    Thanks for reaching out to Jotform Support. I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

    Thanks for your patience.

  • Angeli JotForm Support
    Replied on April 24, 2024 at 4:17 PM

    Hi Jaclyn,

    We really appreciate your patience and understanding while we’re looking into this. You can take your Registrations out of the Product List and use Basic elements and Conditional logic to calculate the cost and show fields depending on the number of registrants. You can clone my demo form here to test or inspect. Note that I only used two of your registrations as an example. I'll walk you through setting that up:

    1. You can use the Dropdown field and add the number of participants they can register in the Options section.

    How to show/hide and calculate fields depending on the number of registrants? Image 1 Screenshot 140

    2. Add fields like Full Name fields to collect information about the Participants and Hide them.

    How to show/hide and calculate fields depending on the number of registrants? Image 2 Screenshot 151

    3. Then, create a Show and Hide Field condition to Show the field/s depending on the number of registrants:

    How to show/hide and calculate fields depending on the number of registrants? Image 3 Screenshot 162

    How to show/hide and calculate fields depending on the number of registrants? Image 4 Screenshot 173

    4. Add a Form Calculation widget for each registration.

    How to show/hide and calculate fields depending on the number of registrants? Image 5 Screenshot 184

    How to show/hide and calculate fields depending on the number of registrants? Image 6 Screenshot 195

    5. Then, create Update/Calculate Field conditions to assign calculation values for each Registration and show the result in their respective Form Calculation widget.

    How to show/hide and calculate fields depending on the number of registrants? Image 7 Screenshot 206

    How to show/hide and calculate fields depending on the number of registrants? Image 8 Screenshot 217

    How to show/hide and calculate fields depending on the number of registrants? Image 9 Screenshot 228

    How to show/hide and calculate fields depending on the number of registrants? Image 10 Screenshot 239

    6. Next, add another Form Calculation widget to calculate the total of all the other Form Calculation widgets.

    7. Hide the widgets, so your form fillers won't see them.

    How to show/hide and calculate fields depending on the number of registrants? Image 11 Screenshot 2410

    8. Finally, change your Product List field's Payment Type to User Defined Amount and select the Form Calculation widget that calculates the total in the Get Price From.

    How to show/hide and calculate fields depending on the number of registrants? Image 12 Screenshot 2511

    Here's the result:

    How to show/hide and calculate fields depending on the number of registrants? Image 13 Screenshot 2612

    Give it a try and let us know if you have any other questions.

 
Your Answer