Selecting tables with multiple sizes in a Booking form

  • leedowsett
    Asked on April 22, 2024 at 5:36 PM

    Hi I'm trying to make a form for a restaurant booking

    I can use the appointment widget with group booking ok, but I need to allow the booking of the correct size table, say of 2, 4 or 8.

    What's the best way to achieve that while still managing the capacity so I don't overbook the restaurant?

  • Mafe_M JotForm Support
    Replied on April 22, 2024 at 7:14 PM

    Hi Lee,

    Thank you for reaching out to Jotform Support. You can use the Inventory Widget or the Gift Registry Widget for the table sizes. These would allow the customer to choose one table size. Let me show you how to add the widgets:

    I. Inventory Widget

    1. In Form Builder, click Add Form Element on the left-hand side of the page.
    2. Go to the Widgets tab and search for Inventory widget.
    3. Drag and drop the widget in to form and click the wand icon.
    4. Add the description, available quantity, quantity range, etc.
    5. Click Update Widget at the bottom to save the changes.

    Selecting tables with multiple sizes in a Booking form Image 1 Screenshot 30

    II. Gift Registry Widget.

    1. In Form Builder, click Add Form Element on the left-hand side of the page.
    2. Go to the Widgets tab and search for Inventory widget.
    3. Drag and drop the widget in to the form and click the wand icon.
    4. Add the items, max selection, etc.
    5. Click Update Widget at the bottom to save the changes.

    Selecting tables with multiple sizes in a Booking form Image 2 Screenshot 41

    Give it a try and let us know how it goes.

  • leedowsett
    Replied on April 22, 2024 at 7:26 PM

    To me this approach looks like it would not manage the time and date of the booking as the appointment widget does? Am I wrong?

  • Mafe_M JotForm Support
    Replied on April 22, 2024 at 8:17 PM

    Hi Lee,

    Thanks for getting back to us. You can still manage the appointments by using the appointment element. While selecting the table sizes must be done in the inventory widget since after selecting a date they must select their preferred table.

    Give it a try and let us know how it goes.

  • leedowsett
    Replied on April 22, 2024 at 9:12 PM

    But it won't manage the inventory by time/date slot will it.

  • Raymond JotForm Support
    Replied on April 22, 2024 at 10:40 PM

    Hi Lee,

    Unfortunately, with the appointment element, multiple submissions will need to be made for each "person" in a table there for a specific appointment. The alternative to that is the solution shared by my colleague, Mafe_M, which is to use the Gift Registry or Inventory widget.

    Give it a try and let us know if you need any help.

  • leedowsett
    Replied on April 22, 2024 at 11:50 PM

    I've managed to get what I want with three appointment widgets, one for each table size, with the maximum attendees per time slot set to the number of each size table.

    I'm showing the appropriate widget using a condition and a dropdown.

    This works, but now I'm having trouble with what comes through the API - I was expecting to get blank answers for the unused widgets on a submission and just be able to concat all three widget answers together in Zapier but I only get an answer coming through for the filled one.

    I've tried to get around this by using a form calculation in the form to concat the three answers together, but where the api call gets a date and time range (Friday, Apr 26, 2024 06:30 PM-08:00 PM) from the widget the form calculator gets a start date and time (26/04/2024 5:00 PM)


    Here is the form calc

    Selecting tables with multiple sizes in a Booking form Image 1 Screenshot 20 Screenshot 10'

    Help - I need the correct range out of the form, for the widget that is used, to come through to zapier.

  • Raymond JotForm Support
    Replied on April 23, 2024 at 12:32 AM

    Hi Lee,

    I moved your other question to a new thread and helped you with that here.

    Reach out again if you have any other questions.


 
Your Answer