Booking Form

  • wyattdesigns
    Asked on May 8, 2018 at 2:49 PM

    Hi. I have website that I need to be able to do a booking form on. It is a cabin rental. I would like to have a calendar to where it can show available dates and then people be able to select the dates they want and pay for it on the site. Is this possible?

  • Adrian
    Replied on May 8, 2018 at 3:54 PM

    Yes, this is possible by using the Date Reservation Widget.

    The Widget has a calendar from which the users can select the available dates. You can set a limit on how many dates can be selected.

    Once a date is selected, it will be disabled for other users.

    Form DEMO: https://form.jotform.com/81275722259966


  • wyattdesigns
    Replied on May 9, 2018 at 8:07 AM

    Thank you. I have found this widget, however, I need the cost to be calculated in the payment form based on what days they selected. I have a cabin rental and I need people to select nights for their stays and then pay for that.

  • DonaldHag
    Replied on May 9, 2018 at 9:06 AM

    I have checked the Date Reservation widget and it seems that it's not possible to calculate the value of number of days booked and use it in other parts of the form.

    A good workaround is to add a number field on the table where the user enters the number of days they have selected and then use that to calculate the total cost.

    I have made a working demo you can find here: https://form.jotform.me/81283554382460

    Basically add a number field and a calculation field to the table. In the calculation field click on the wand icon and input a formula which is the number field * price per night.

    Here's a guide about it: http://www.jotform.com/help/259-How-to-perform-calculation-in-the-form 

    From there you can pass the result value to a payment field and process their booking. A guide on that is here: http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field 

  • wyattdesigns
    Replied on May 9, 2018 at 2:28 PM

    Hi. So I have a number form and then a calculation form but I can't get it to calculate the amount correct. I did what you said. Basically, I need it to calculate the number entered for the weeknights section  *$195 and the weekends *$225 and then add $350 for a security deposit. Nothing that I try works. The payment field either will show a 0 or it will come up with a string of numbers that I don't know where it got.

  • wyattdesigns
    Replied on May 9, 2018 at 2:29 PM

    It is the form on my account called:

    Cedar Springs Cabin Booking Form

  • Adrian
    Replied on May 9, 2018 at 3:00 PM

    I have checked your form and the expression in the Form Calculation Widget is not correct.

    Booking Form Image 10

    The calculation should look like this as per your requirements.

    Booking Form Image 21

    Cloned Form DEMO: https://form.jotform.com/81286016894969


  • wyattdesigns
    Replied on May 9, 2018 at 3:06 PM

    Great. Thank you. The other question that I have, is I would love to do this question on a multi question one (so that both questions, how many week nights and how many weekend nights) appear on one tab but when I set it up like that and then go to my form calcualation widget, it doesn't let me add that field. I have to have it separated. How do I get them on the same tab?

  • Nik_C
    Replied on May 9, 2018 at 4:33 PM

    If you meant to add the form calculations field to the Multi-line field, I'm afraid it is not possible, you can only add the offered fields:

    1525897636Screen Shot 2018 05 09 at 10 Screenshot 10

    Widgets cannot be added to that field.

    So you will have to have them on separate tabs.

    Let us know if you have any further questions or if you had something else in mind.

    Thank you!

  • wyattdesigns
    Replied on May 10, 2018 at 4:42 AM

    I was actually wanting the calculations widget to PULL FROM a multi-line question. Is that possible? I don't need the calculations widget to be in the multi-line question but rather to calculate values based on entries in a multi-line question.

  • tina JotForm Developer
    Replied on May 10, 2018 at 7:32 AM

    **You can open a new thread for your every question here if the questions are not related each other. With this way, we can assist you more properly.**

    Unfortunately, you cannot obtain the values of the Multiline question subfields separately using form calculation widget for now. I recommend you to use Update Calculate Fields conditional logic in order to obtain the values of the subfields and use them in other operations:

    demo form:

    https://form.jotform.com/81293419023958

    You can refer to this conditions I have set in order to obtain the value of each subfield:

    1525951961Screen Shot 2018 05 10 at 2 Screenshot 10

    Please check this guide in order to learn more about Update Calculate Fields Conditional Logic:

    How to Insert Text or Calculation into a Field Using Conditional Logic