Limited Quantities

  • pinkhairedgirl
    Asked on September 14, 2015 at 10:26 AM

    Is there a way to create the form where quantities are automatically limited? Meaning, we want to use a form for a class scheduler where there's a fee. But the class sizes are limited. We also use Stripe. Is there a way for the form to stop accepting submissions once a class is full? Thanks! 

  • David JotForm Support
    Replied on September 14, 2015 at 2:23 PM

    Hi,

    This can be accomplished using the inventory widget:

    http://widgets.jotform.com/widget/inventory

    This will allow you to have a certain number of each class and assign a cost to them as well. 

    You can then use a calculation widget to total them up:

    http://www.jotform.com/help/259-How-to-perform-calculation-in-the-form

    Then pass that total to your Stripe payment field:

    http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field

    You can also limit the number of submissions that the form will accept, based on the total number of all classes available:

    https://www.jotform.com/help/137-How-to-Limit-Submissions-in-a-Form

    If you have 4 classes and 25 spots for each, you would limit your form to 100 total submissions.  That way, once all the inventory widgets were depleted, the form itself would no longer accept submissions.

    That is quite a bit of info to take in, if you want clarification regarding anything, let us know and we will be happy to help.