JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
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.
How can I calculate the total for a check box field?Asked by lennyyong on September 29, 2014 at 06:17 AM
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.
check check box field prices items
You can do it by using the “Form Calculation” widget that can be found under the Widgets tab.
Then, in the calculation wizard you can add the field or fields you need to calculate.
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.
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.