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 a total value with discount, based on products and drop down selections?Asked by GrannyGooGoo on February 13, 2016 at 03:55 PM
I just wanted to update my earlier problem. I was trying to use the conditional statements to update prices if a certain box was checked but couldn't figure out how to adjust it for all the different prices. Since last night I figured out that I had to make a statement for each price and it worked. Was a pain to write a statement for each one, hopefully it will work as intended.
This is a re-post of a comment on Smart Forms Using Conditional Logic
Yes, you need to set one condition for each selection in your form.
I checked your form and I can see it's currently working, if you have some issues, you can indicate us the problem, we will be glad to take a look on it and help you.
Thank you for your answer but when I try it the price gets added to the total where it should be yet the discount for local pickup does not get calculated. I don't know what I am doing wrong. Any suggestions will be helpful, in the meantime I will try rearranging some things to try to get it to work.
I have checked now your form and I can see that you have added some conditions to update the total amount in your form.
I have tested it and I see that it's working as expected.
If "Local Pickup or Delivery" is equal to "Local" and "Order and Payment" is equal to "Medium" then the result in the field "Total for Order Today" should be 300, because based in your condition, you are taking the total value for "Medium" which is $600 and then you subtract "350", so this is the operation: 600 - 350 = 300.
Did you found the solution for your calculation?
Do let me know if I misunderstood your question, we will be glad to take other look to your form.