Calculate multiple values

  • Profile Image
    sippytom
    Asked 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

  • Profile Image
    Welvin
    Answered 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
    sippytom
    Answered on January 13, 2014 at 09:30 PM

    Hi,

    Thanks for that, works like a charm.

     

    Tom

  • Profile Image
    abajan
    Answered on January 13, 2014 at 09:33 PM

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


    Cheers