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.
How to calculate total based on user selections?Asked by newmethodanceministries on October 12, 2015 at 03:17 PM
I have multiple participant fields. Once the customer selects Yes to they would like to a T-shirt and the size (Plus sizes will be more), if each participant and T-shirt selection can be calculated into one total at the end
If a customer is registering 10 participants and each participant would like a T-shirt, 4 out of the 10 participants are plus size shirts. (Workshop fee=$20 T-shirt Fee=$20/Plus Size $25.00)
So that would be a total of $200 registration
T-shirt Total $220.
$420 would need to be calculated at the end.
Or for whatever they selected. How can I accomplish this?
1. You can add a dropdown field with "How many participants do you want to register?"
2. You can add calculation values to the fields, both the "How many participants" and for each t-shirt size:
3. Now you can add a calculation widget and add all the fields to the calculation:
You can test and clone the demo form:
Let us know if we can assist you further.
not only that, the previous participant fields need to be calculated as well. Each participant field needs to be calculated
This should be possible with custom calculations. I would like to suggest checking the next guides:
Take a look at 'Calculated amount based on user selections and inputs' section of the next article to see it in action.
I appreciate all of your help. I went through all of the tutorials. I am still having issues with the calculations. I have tried EVERYTHING lol.
When they choose a class and or if they choose a t-shirt size, it should be calculated. the calculations do not add up correctly. What am I doing wrong?
Your calculations look good in general, but it seems that there are missing plus symbols between tshirtSize and participantClass fields. Please add them and re-check the form.
Ok I added the plus signs, but now it's not giving a total at all.
I have removed the last plus sign, and calculations seems to be fine now.
Please test the form now.
OMG IT WAS THAT SIMPLE??????????????!!!!!!!!!!!!!!!
Yes, that was it. The web things are quite confusing sometimes :)