Form Calculation: Apply 20% Discount with Promo Code SPRING

  • Profile Image
    Expressform
    Asked on March 27, 2026 at 4:30 PM

    Hi,

    How do I calculate the 20% off the final price before taxes on this form, when the customer enter the promo code "SPRING"?

    In example, if the customer select 1 Bedroom / 1 Bathroom cleaning is $148.20, but if the enter the promo code SPRING the get 20% off, ($29.64 discount) = $118.56

    Thank you,


    Armando

    Jotform Thread 36954671 Screenshot
  • Profile Image
    Skylar
    Replied on March 27, 2026 at 4:43 PM

    Hi there!

    To do this, you can follow the following steps.

    1. Start out with assigning values to each selection using the single choice element. Once this is added to your form, go to the gear icon (properties) to the right and move to options. Here, you can assign calculation values for each option. ($148.20)
    2. Then, add a short text element that can be used for entering a promo code, as well as a number element for the total price of the selection.
    3. From here, move over to conditions through settings > conditions > and add conditions. Here are the conditions I made for the choice you showed above. You can follow this for the following options as well, copying the promo code formula.

    
Form Calculation: Apply 20% Discount with Promo Code SPRING
Image-1

    Test this out and let me know if it helps! When I did it on my end, it worked well. Thanks.

  • Profile Image
    Expressform
    Replied on March 27, 2026 at 6:04 PM

    Thank you for your answer, but I think I did not elaborated the right question, I can not assign calculation values since there are unlimited options according to the number of bedrooms and bathrooms that the customer select. I want to deduct 20% off the field "THIS SERVICE PRICE" if the customer select "one time regular cleaning" and enter promo code "Spring"

    Thank you,


    Armando

  • Profile Image
    Jeric_T
    Replied on March 27, 2026 at 6:38 PM

    Hi Armando,

    We can achieve that by adding a number field below THIS SERVICE PRICE. Then we will include that in the calculation and create a condition. Let me show you how:

    1. In Form Builder, click on Add Element on the top left side.

    
Form Calculation: Apply 20% Discount with Promo Code SPRING
Image-1

    2. Under Basic, click on Number and label it to your desire. I labeled it With Discount.

    3. On the top right side, click on the Advanced Tab and set the Default Value to 1.

    4. Next, turn on Hide Field.

    5. Finally, click on Save

    
Form Calculation: Apply 20% Discount with Promo Code SPRING
Image-2

    Next, we'll create a condition to calculate the value to 0.8 if the both conditions are met.

    1. In Form Builder, in the orange navigation bar at the top of the screen, click on Settings.

    2. Click on Conditions on the left side of the screen.

    3. Select the Update/Calculate Field and create the condition as shown in the 2nd image below.

    
Form Calculation: Apply 20% Discount with Promo Code SPRING
Image-3

    4. Finally, click on Save.

    
Form Calculation: Apply 20% Discount with Promo Code SPRING
Image-4

    Finally, update your calculation and multiply the Number field we've just added, as shown below:

    
Form Calculation: Apply 20% Discount with Promo Code SPRING
Image-5
    Here's the cloned version of the form that you can test.

    Give it a go and let us know if anything else comes up.