Disabling the form after x number of tables have been booked.

  • wretchid
    Asked on May 13, 2018 at 12:09 PM

    I'm trying to figure out if there is a way to disable my form after x number of tables has been booked.

    I.e I have 62 available tables to sell for a market. The user is able to book between 1-5 tables for the event. After 62 tables have been booked, i need to form to disable itself so users can't book tables that are not available..

    Is this possible to do, or do i have to disable it manually when i've recieved the maximum number of bookings?

  • Mike_G JotForm Support
    Replied on May 13, 2018 at 2:36 PM

    Based on my understanding of your concern, I would suggest that you use the Inventory widget.

    Under General tab of the widget settings, you can set the description of what you are selling.

    1526235570t14 14 34 Screenshot 10

    There you will also be able to set the number of available products.

    1526235693t14 20 49 Screenshot 21

    Since from what I understand you would like your respondents to only book 1 to 5 tables on every form submission, I suggest that you set the Quantity Input Type option of the widget to Dropdown and set the Quantity Range to 1-5.

    1526235906t14 21 20 Screenshot 32

    An error message that you can customize will appear if the respondents will try to select a quantity that is more than what is available.

    1526236100t14 26 57 Screenshot 43

    If there are no items left, the item/product will be crossed-out and will be disabled.

    1526236217t14 29 30 Screenshot 54

    I would suggest that you also set the Inventory widget as required so that it will be impossible to submit the form if the widget is not filled correctly or there are no remaining items left to select.

    1526236372t14 31 50 Screenshot 65

    For example:

    1526236502t14 34 11 Screenshot 76

     

     

    I hope this helps. If, in any case, I have misunderstood your concern, please do not hesitate to let us know.

  • wretchid
    Replied on May 14, 2018 at 4:59 AM

    Thanks alot for this, it is exactly what i needed! Awesome!

  • wretchid
    Replied on May 14, 2018 at 5:32 AM

    Is it possible to add a equal number range? I'm selling square meters to business and i need the range to be from 4 - 24 with equal intervals. i.e 2-4-6-8-10-12-14-16-18-20-22-24
  • Scott JotForm Developer
    Replied on May 14, 2018 at 7:33 AM

     Your last question is moved to the thread linked below and we will be replying it ASAP:

    https://www.jotform.com/answers/1471507-Inventory-Widget-Range-steps