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 can I perform calculations in my form?

    Asked by shashail on February 08, 2017 at 04:18 PM

    Hi I would like to make a form where 

    Once the user selected

     

    Option A  qty = 10  then it should calculate $2*10 =  $20

     

    Option B  qty = 10  then it should calculate $5.00*10 =  $50

     

    Showing a total of $70 in the calculated Field

     

    This is some sort of a form to inform the end user with a price for his order

    Page URL:
    https://eu.jotform.com/build/70376119685161

  • Profile Image
    JotForm Support

    Answered by Kevin_G on February 08, 2017 at 05:03 PM

    Yes, this is indeed possible, you only need to add the needed fields to display your option as well as the quantity:

    To the option in the check box you will need to add a calculation value, this will be like the individual price: 

    Then you only need to add the calculation field to your form: 

    Once added you only need to perform your calculation lie shown on the screenshot below:

    If you would need to add another calculation then you would only need to add it like this "+(OtherCheckbox * QuantityForThisOption)". 

    Here's also a sample form where you can see how this works: https://form.jotform.com/70387026387967 

    Here're also some guides that will help you: 

    https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget

    https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field

    https://www.jotform.com/help/301-How-to-Assign-Calculation-Value 

    If you have any question, let us know.