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.


  • Profile Image

    Calculation error

    Asked by christhouas on April 04, 2017 at 04:32 PM
    Hello,
     
    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

    Ex:

    (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:

    Ex:

    (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,

  • Profile Image
    JotForm Support

    Answered by Chriistian 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.
    Regards.

  • Profile Image

    Answered by christhouas 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:

    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"

    ex:

    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.

     

    Regards,

  • Profile Image
    JotForm Support

    Answered by Chriistian 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.
    Regards.

  • Profile Image

    Answered by christhouas 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.

  • Profile Image

    Answered by christhouas 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$

  • Profile Image
    JotForm Support

    Answered by Chriistian 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.
    Regards.

  • Profile Image

    Answered by christhouas on April 05, 2017 at 02:06 AM

    Appreciate the reply, already figured it out and implemented it! Thanks again.