Two quantity properties needed in Payment Wizard

  • eiermann
    Asked on July 14, 2014 at 11:42 AM

    Hi there,

    I am using the payment wizard for the following form.

     

    I need two quantity porperties:

    1. number of rooms

    2. number of nights

     

    Unfortunately JotForm only allows one quantity property. How can I make sure my guests can select the number of rooms and the number of nights they would like to book and see the total amount they need to pay? 

    Or can the number of days automatically calculated from the calendar (check-in and check-out date)?

    two quantity properties Screenshot 10

    Looking forward to your reply!

  • David JotForm Support
    Replied on July 14, 2014 at 12:43 PM

    Hi,

    You could setup a custom calculation widget:

    Two quantity properties needed in Payment Wizard Image 1 Screenshot 30

    That will take in the type and amount of each room, run a calculation to based off that cost and the number of nights, then pass that calculation to your payment widget:

    Two quantity properties needed in Payment Wizard Image 2 Screenshot 41

    For each new type you would just add another part to your equation, for example:

    ((singleBungalow * 250000) + (singleLumbung * 250000) + (doubleBungalow * 400000)) * (nights)

    Here is a an example I made with your form:

    http://form.jotformpro.com/form/41945191588971?

    Please let us know if this is not what you were looking for and we will be happy to assist you further.

    Thank you for using Jotform!