How to Set Up Promo Codes Using Conditional Logic
Learn to set up promo codes using conditional logic. Swap prices and hide fields automatically for a seamless checkout.
Offering discounts is a great way to boost conversions and reward your community. While these forms do not use a traditional "coupon" button, you can create a seamless experience by using Conditional Logic to swap prices based on what a user types in the promo field.
Step 1: Create the Promo Code Field
First, you need a field where users can input their code.
-
Add a Text Block (Short Answer) field to your form.
-
Label it "Promo Code".
-
Description: Use the description area to provide instructions (e.g., "Enter your code here for a discount").
Important: Do not make this field required. If it is required, users without a code will be unable to submit the form.
Step 2: Create Your Product Options
You will need to create two separate versions of your pricing:
-
Regular Price Product Field: Create a product or dropdown with your standard pricing.
-
Discounted Price Product Field: Create a second product with the price already adjusted (e.g., a 10% reduction or $0 for a full discount).
Step 3: Apply Conditional Logic
Now, you will set rules so that the form automatically hides the full price and shows the discount when the correct code is entered.
To Hide the Regular Price:
-
Open the settings for your Regular Price Product.
-
Enable Conditional Logic.
-
Set the rule to: Hide this field if All match.
-
Select:
Promo Code|is|IndiegrafFriends(or your chosen code).
To Show the Discounted Price:

-
Open the settings for your Discounted Price Product.
-
Enable Conditional Logic.
-
Set the rule to: Show this field if All match.
-
Select:
Promo Code|is|IndiegrafFriends.
Managing Multiple Codes
If you have various tiers of discounts, follow this logic structure:
| Goal | Field to Edit | Logic Action | Condition |
| Hide Full Price | Regular Product | Hide | If Promo Code is Indiegraf10 OR IndiegrafFree |
| Show 10% Off | Discounted Product | Show | If Promo Code is Indiegraf10 |
| Show Free Option | $0 Product | Show | If Promo Code is IndiegrafFree |
| Hide Payment Info | Billing Block | Hide | If Promo Code is IndiegrafFree |