How can I calculate the total for a check box field?

  • lennyyong
    Asked on September 29, 2014 at 6:17 AM

    Hi there,

    I'd like to check how I can automatically help the registrant who enters my page to calculate the total within a check box field that contains several items and prices. I would require this total sum to be in a field right below the check box field.

    For example, under "Optional Add On Tests-1" I would like the user to be able to see the final sum after he finished selecting the various check boxes that he wants.

    Looking forward to your response! Thank you.

  • rehcgt
    Replied on September 29, 2014 at 9:58 AM

    Hi there,

    You can do it by using the “Form Calculation” widget that can be found under the Widgets tab.

    How can I calculate the total for a check box field? Image 1 Screenshot 30

    Then, in the calculation wizard you can add the field or fields you need to calculate.

    How can I calculate the total for a check box field? Image 2 Screenshot 41

    You can find a cloned version of your form at http://form.jotform.co/form/42713692704860

    Please take a look at it and see if this is the result that you want.

    If you have any questions, please post them here.

     

    Thanks.

  • KadeJM
    Replied on September 29, 2014 at 10:05 AM

    In addition to rehcgt's response did you mean that you want to use a checkbox field to create additional sub-options based on a calculation?

    Or were you referring to using checkboxes to create a custom calculation which you then wanted to send into your payment integration?

    I see you already are using a lot of products on your jotform. So depending on how you want to do this you could create your sub-options to offer as mentioned in this guide here http://www.jotform.com/help/178-How-to-Have-Sub-Category-or-Sub-Labels-on-an-Order-Form

    Alternatively, instead of that you could just create it from grouped checkboxes then use the form calculation widget as mentioned above to send it to your product if you wanted to go that route. Please see http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field for more info.