Two quantity properties needed in Payment Wizard

  • Profile Image
    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

    Looking forward to your reply!

  • Profile Image
    david
    Answered on July 14, 2014 at 12:43 PM

    Hi,

    You could setup a custom calculation widget:

    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:

    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!