What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    Can I create a booking form where users can directly calculate the totals?

    Asked by adriano53 on April 21, 2017 at 11:33 AM

    I would like to create a hotel booking form where a user can directly calculate how much it can cost to stay with these variables: duration of stay, how many people, ancillary services, etc ... a tip? it can be done?

  • Profile Image
    JotForm Support

    Answered by Welvin on April 21, 2017 at 01:12 PM

    Yes, that is possible. You can do it with the calculation feature. To get started, you need to configure your form first. You can use our fields such as Dropdown, Checkbox or Radio Button fields. 

    1. With the mentioned fields, you can assign calculation values for their options (https://www.jotform.com/help/301-How-to-Assign-Calculation-Value). You can use this to hide the price in the form view.

    2. You need to get the total by calculation widget: https://www.jotform.com/help/259-How-to-perform-calculation-in-the-form.

    3. You can pass the total to the payment field for payment processing: https://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field.

    Please do not hesitate to get back to us if you need further assistance.