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

    How to calculate total price from two values entered by the user in the form field?

    Asked by hughdal on June 15, 2015 at 11:03 PM

    I want to calculate price based on square footage, so the customer enters a width and height (canvas prints).

    Is there a way I can write those entered values into a formula to calculate the subtotal?

    Width - 12

    Height - 12

    Formula would be 12*12\144 = 1 *my price per square foot.




  • Profile Image
    JotForm Support

    Answered by ashwin_d on June 16, 2015 at 03:49 AM

    Hello hughdal,

    Yes it is possible to achieve your requirement. 

    You can take advantage of our "Form Calculation" widget which will allow you do add calculation formula in your form. Please check the screenshot below on how to add formula in form calculation widget:


    Please take a look at the following demo form which I created:  http://form.jotformpro.com/form/51662065911958? Feel free to clone this form for a closer look. The following guide should help you in form cloning:  http://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL 

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!