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 set a form to calculate total based on user selections?

    Asked by SJWForms on January 18, 2014 at 03:35 PM

    I'm trying to create an order form for CD's that our school will be selling. The end user has the option to select mail delivery, but this is an additional charge. Here's what I want to do:

    Total = #ofCDs x 10 + Shipping, if any

    input #ofCDs desired > form calculates Total = #ofCDs x 10

    if user selects "mail delivery", then form adds Shipping (3 x #ofCDs) to Total

    I think that this can be done, I just don't know how. Any ideas?

    Thank you!

    Sr. Cecilia

    calculate total order form create an order form create charge
  • Profile Image
    JotForm Support

    Answered by EltonCris on January 18, 2014 at 06:04 PM

    Hi Sr. Cecilia,

    We have calculation tool available in the form builder. Here's an example for you.

    Here's an example: http://form.jotformpro.com/form/40176627595968?. Feel free to clone this form if you like.

    If you need further assistance, let us know here.

    Regards!

  • Profile Image

    Answered by SJWForms on January 18, 2014 at 06:43 PM

    Thank you! I was able to get something going. However, I want the form to only calculate shipping if it applies, and I can't figure out how to do it.

    Subtotal is supposed to take the number of CD's and multiply it by 10

    Shipping Charge is supposed to take the number of CD's to be shipped and multiply it by 3

    Total is supposed to add Subtotal and Shipping Charge

    The problem I am having is that if the number of CD's to be shipped is equal to zero, then Shipping Charge stays blank, but so does Total.

    Could you take a look and see what I'm doing wrong?

    http://form.jotform.us/form/40176295163152

    Thanks!

  • Profile Image
    JotForm Support

    Answered by EltonCris on January 18, 2014 at 08:58 PM

    Hi,

    I am trying to understand your calculation. Can you explain the difference between no. of CDs and no. of CDs to be mailed?

    Unfortunately, that is how calculation works. Maybe you could add another total fields specifically for mail delivery? Here's an example: http://www.jotformpro.com/form/40177632343956?. I'm not sure if I got it right, maybe you can figured it out when you clone this form.

    Regards!

  • Profile Image

    Answered by SJWForms on January 19, 2014 at 02:42 PM

    Yes!! That's what I wanted! Thank you so much. I only wanted it to calculate shipping if the person selected shipping, so that is perfect!

    Thanks again!

    Sr. Cecilia