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

    How to add the formula from the coupon code to the calculations.

    Asked by toppick on September 08, 2016 at 11:53 PM

    Hi I created a coupon code but I dont know how to add the formula. I like to set $10 off on each transaction. Would you be able to help me with this please?


    Thank you

  • Profile Image
    JotForm Support

    Answered by Chriistian on September 09, 2016 at 01:52 AM

    I see you are using conditions to pass the calculated result to the calculation field. I also noticed that you have already setup a formula for the coupon code inside your Total Discount field.

    To add the discount to the "This Project Will Cost You" calculation field, you simply need to add the Total Discount field to the formula of the condition and subtract it from the total price as seen below. Do the same to the rest of the conditions with the calculation field and you're all set.

    By doing so, if a coupon code is entered and the Total Discount has a value then that value will be subtracted from the final price, but if there is no coupon code then there won't be any discount.

    Furthermore, since you are already using conditions to calculate the price, you do not need to also add a formula inside the Calculation Field so you can simply remove the formula inside there. Otherwise, having formula inside the calculation field and the conditions would cause a conflict with your calculations.

    Please let us know if you need further assistance.