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

    Calculate multiple values

    Asked by sippytom on January 13, 2014 at 06:10 PM

    Hi,

    I have a form with around 20 text box fields.

    This is a part of the calculation

     

    Total: $[{beginner40}*14.50 + {elementary}*14.50 + {preliminary}*14.50]

    It works but only if all fields have a value in them.

    I have tried to set 0 as the default but still have to enter a number into each.

    It using only 1 or 2 of the fields might have a value.

     

    hope this helps it is the xara script "<script type="text/javascript" src="//form.jotform.co/jsform/40010567731849"></script>"

    Tom

    JotForm xara jsform all
  • Profile Image
    JotForm Support

    Answered by Welvin on January 13, 2014 at 09:23 PM

    Hi Tom,

    Please do this. Put 0 as the default value and from the total area, uncheck the settings for "Wait for input before including the field in calculation." That should fix it.

    Thanks

  • Profile Image

    Answered by sippytom on January 13, 2014 at 09:30 PM

    Hi,

    Thanks for that, works like a charm.

     

    Tom

  • Profile Image
    JotForm Support

    Answered by abajan on January 13, 2014 at 09:33 PM

    Glad we could help, Tom. If you need further assistance, please let us know.


    Cheers