- christhouasAsked on April 04, 2017 at 04:32 PMHello,I am experiencing an issue with the calculation widget. When my customer fills out a form, but then decides to modify one of the options, instead replacing a calculation it simply adds the two together. I've tried to display the issue below
(Drop Down 1) option A = +1$
(Drop Down 2) option A = +2$
(drop Down 3) option A = +3$
Calculation Total = 6$
Now if I were to simply modify "Drop Down 2" and select say "Option B = +2$" which then hides "Drop down 3" and offers "Drop Down 4" with "option A = +4$". Instead of removing the +3$ and replacing it with the +4$ it adds both amounts in my total. Resulting in something like this:
(Drop Down 1) option A = +1$
(Drop Down 2) option B = +2$
*Hidden* (drop Down 3) option A = +3$
(Drop Down 4) option B = +4$
Calculation Total = 10$
I'm sure it's an easy fix, and simply an error on my end.
Thanks for your help,
- JotForm SupportChriistianAnswered on April 04, 2017 at 09:19 PM
Can you please provide us the form you are working on so that we can further check? I checked the forms in your account and it seems that there are no dropdown fields and form calculation widget on any forms.
I'll wait for your response.
- christhouasAnswered on April 04, 2017 at 09:29 PM
Hey, the form I am working on is not published on my site, but here's a direct link:https://form.jotform.com/70747652833261
I have found an alternative solution by using "conditions", however it's a very long process and I am still implementing it.
Another question came up in the process though. Currently I am creating conditions that are sending values to my "calculation form"
If option A is equal to Z & option B is equal to X | If all rules selected | Insert 15 to calculation |
which my payment option then inserts into the "total" form. Again although it is a long process, it does work. What I am now wondering, what is the quickest way to add discounts via promo codes that a user has to enter.
- JotForm SupportChriistianAnswered on April 04, 2017 at 10:41 PM
Glad that you have found an alternative solution about the calculation on your form. Regarding on how to add discounts via promo codes, please refer to this guide on How To Add Coupon Code in the Payment Form.
Let us know if you need further assistance.
- christhouasAnswered on April 04, 2017 at 10:56 PM
That method does not work for me unfortunately as I my payment method is "user defined" as in the outcome of their selection on my form is the total. I don't even have access to that "coupon" page.
- christhouasAnswered on April 04, 2017 at 11:16 PM
I think I either need a conditions or formula for the calculation form. Something a long the lines of.
If "Promo Code" is equal to "PROMO5"
Then add calculations "-5" to Calculation
Is this possible? When I attempt this now, instead of just subtracting the 5$ from the total of the order, it just replaces it with 5$
- JotForm SupportChriistianAnswered on April 05, 2017 at 02:05 AM
If you want a discount to be added for example "-5" to the calculation if they provide a Promo Code, then you can simply subtract the calculation to "-5". Please see the image below:
Hope this helps.
- christhouasAnswered on April 05, 2017 at 02:06 AM
Appreciate the reply, already figured it out and implemented it! Thanks again.