I need to set an event cap

  • placewise
    Asked on March 15, 2019 at 5:43 PM

    I need to add total number of children and total number of adults and have it subtract from the max capacity of 150 in the form. What is the best way to do this?

     

  • jherwin
    Replied on March 15, 2019 at 7:19 PM

    To achieve that, you'll need to add a form calculation widget to your form so you can make a calculation.

    Here's a guide: How to Perform Form Calculation Using a Widget

    By the way, Is 150 capacity in the calculation is fixed? If not, then I'm afraid you will not get the value of your remaining capacity, you will not be able to use it in your calculation.

  • placewise
    Replied on March 17, 2019 at 4:27 PM

    Hi jherwin,


    I figured out the Form Calculation Widget. I can get it to add the total number of entrants but I am also trying to get that total number subtracted form the number of attendees. I sent the link to the form I'm using so you can see what I'm trying to do. Can you help me trouble shoot what I am doing wrong? 

  • Nik_C
    Replied on March 17, 2019 at 6:00 PM

    If you meant to have it subtracted from here:

    1552859941Screen Shot 2019 03 17 at 10 Screenshot 10

    That can only happen if you manually enter the number there and submit the form, in that case it will deduct the number from the total number left.

    If you had something else in mind, please let us know.

    Thank you!

  • placewise
    Replied on March 18, 2019 at 2:58 PM

    Hi Nik,

    When we manually enter that number in the form preview we are not getting the option to submit the form. Is that because the form is not live? 

  • Nik_C
    Replied on March 18, 2019 at 4:22 PM

    I checked your form https://form.jotform.com/90736255830156 and there is a submit button there "Schedule Appointment":

    1552940422Screen Shot 2019 03 18 at 9 Screenshot 10

    So your form should be submitting fine.

    Are you experiencing any problems?

    We'll wait for your response.

    Thank you!

  • placewise
    Replied on March 18, 2019 at 7:46 PM

    Hi Nik,

    I still can't get the form to to show the schedule appointment link on the preview. I'm not sure what is going on here. I'm adding the total number of adults + children. The total number of attendees is calculating fine. However, when I go to select from the "total" the number is not updating nor is the "schedule appointment" button appearing. 

  • jherwin
    Replied on March 18, 2019 at 9:13 PM

    The button is hiding because of your conditional logic. When the "Number of Adults Attending and Number of Children Attending" is filled then it will hide the submit button. Please correct this or delete the condition to fix the issue.
    1552957941hiding Screenshot 10
    Also, for the "Total" field, it will only update once you submitted the form, please test submit the form and load the form again to see the changes.