### [Coupons Addon](https://wpforms.com/docs/coupons-addon/)

**Published:** March 1, 2024
**Author:** Umair Majeed

**Excerpt:** Learn how to use the WPForms Coupons addon to provide promotional discounts on your forms.

**Content:**

Coupons Addon is a Pro Feature

 Unlock Coupons Addon and other powerful features to grow your business.

 [ Get WPForms Pro ](https://wpforms.com/pricing/) 

Are you looking to enhance your customer engagement with attractive discount options? With the WPForms Coupons addon, you can create personalized or automatically generated coupon codes directly from your WordPress dashboard.

This tutorial will show you how to install and use the Coupons addon with WPForms.

- [Installing the Coupons Addon](#install-addon)
- [Creating a New Coupon](#create-coupon)
- [Adding Coupons to Your Forms](#adding-coupon-field-to-form)
- [Frequently Asked Questions](#faq)

**Requirements**:

- You’ll need a [Pro license level or higher](https://wpforms.com/pricing/) to access the Coupons addon.
- Ensure that you’ve installed the latest version of WPForms to meet the [minimum required version](https://wpforms.com/docs/why-you-should-always-use-the-latest-version-of-wpforms/#version-requirements) for the Coupons addon.

---

## Installing the Coupons Addon

Before you dive into the tutorial, be sure to [install and activate the WPForms plugin](https://wpforms.com/docs/install-wpforms-plugin/) on your WordPress site.

Once you’ve installed WPForms and [verified your license](https://wpforms.com/docs/verify-wpforms-license/), you’ll be able to quickly [install and activate the Coupons addon](https://wpforms.com/docs/install-activate-wpforms-addons/).

After activating the addon, you can configure it by going to **WPForms** » **Payments** and selecting the **Coupons** tab.

![Coupons tab in Payments page](https://wpforms.com/wp-content/uploads/2023/06/coupons-tab-payments-page.png)## Creating a New Coupon

To get started, click on the **+ Add Coupon** button in the Coupons tab of the Payments page.

![Add coupon button](https://wpforms.com/wp-content/uploads/2023/06/add-coupon-button.png)This takes you to the **Add New Coupon** page.

![Coupon fields ](https://wpforms.com/wp-content/uploads/2023/06/coupon-fields-1.png "coupon-fields")Here are all the fields you can fill out on this page:

**Note:** Required fields are marked with an asterisk (\*).

- **Name\*:** Give your coupon a title for easy identification. This won’t be visible to customers.
- **Code\*:** Set the coupon code for customers to use for discounts. You can create your own or click the **Generate Code** button for a random coupon code.
- **Amount\*:** Choose the discount your coupon offers. It could be a percentage or a fixed amount. To switch between both options, click the dropdown next to the **Amount** field and choose the one you’d like to use.
- **Start Date / Time:** Determine when the coupon starts being active.
- **End Date / Time:** Choose when the coupon will no longer be valid.
- **Max Uses:** Set the total number of times the coupon can be used before it’s invalid.

**Note:**

- You won’t be able to modify the **Code** and **Amount** fields after saving your coupon. We recommend double-checking these fields before proceeding.
- The **Amount** field currency defaults to the currency specified in your WPForms settings page. You can change it anytime by going to **WPForms » Settings** and selecting the **Payments** tab. Then click the **Currency** dropdown and choose your preferred currency.

When creating your coupon, you can leave the Start Date, End Date, and Max Uses fields empty. However, if you do, there won’t be any limits set for the coupon code’s usage. For example, the coupon will remain valid indefinitely if the **End Date** field is blank.

### Mapping Coupons to Forms (Optional)

Next, you have the option to associate your coupon with specific forms. Scroll down to the **Allowed Forms** section and switch the toggle button next to the particular form where you want your coupon to be applicable.

**Note:** Connecting the coupon to a form at this stage is optional. If the form you want your coupon to be used in does not exist yet, you can always connect them later in the form builder via the [Coupon field options](#adding-coupon-field-to-form).

![Toggle button for allowed forms](https://wpforms.com/wp-content/uploads/2023/06/choose-allowed-form.png "Toggle Button For Allowed Forms")You can also apply the coupon to all forms. This can be done by clicking the toggle button next to the **Form** column.

![Allow coupon on all forms](https://wpforms.com/wp-content/uploads/2023/06/allow-coupon-all-forms.png "Allow Coupon on All Forms")When you’re happy with your settings, click the **Save Coupon** button to save the coupon.

![Save coupon button](https://wpforms.com/wp-content/uploads/2023/06/save-coupon-button.png)## Adding Coupons to Your Forms

For customers to use your coupon code, you’ll need to add the Coupon field to your form and choose the coupons you’d like to allow.

**Note:** To quickly implement these settings and see how a coupon-enabled form looks, you can start with our pre-built [Coupon Form Template](https://wpforms.com/templates/coupon-form-template/) as a foundation for your own customized form.

Start by [creating a new form](https://wpforms.com/docs/creating-first-form/) or editing an existing one. Once you’re in the form builder, look for the **Coupon** field under the **Payment Fields** section and add it to your form.

![Add coupon field to form](https://wpforms.com/wp-content/uploads/2023/06/add-coupon-field-to-form.gif)**Note:** Only one Coupon field can be added to a form.

Next, click on the added Coupon field from the preview panel to open its Field Options.

Under the **General** tab, click the **Allowed Coupons** dropdown and select the coupon(s) you wish to allow on this form.

![Allowed Coupons dropdown](https://wpforms.com/wp-content/uploads/2023/06/allowed-coupons-dropdown.png)You can allow multiple coupons on a single form. However, users can only apply one of the allowed coupons for a discount when filling out your form.

**Note:** The coupon(s) you choose to allow here will automatically be linked to this form on the Coupon settings page. This means that the toggle button for this form will be enabled in the **Allowed Forms** section when editing the coupon(s) you allow on this form.

If you’d like to change the text on the **Apply** button, select the **Advanced** tab. Then update the text in the **Button Text** field.

![Change Button text](https://wpforms.com/wp-content/uploads/2023/06/change-button-text.png "Change Button Text")**Note:** The Field Options panel provides customization options like changing field labels or enabling [conditional logic](https://wpforms.com/docs/how-to-use-conditional-logic-with-wpforms/). To add a custom placeholder to the Coupon field, visit our [developer documentation](https://wpforms.com/developers/how-to-add-a-placeholder-to-the-coupon-field/). For more on field options, see our [field options customization](https://wpforms.com/docs/how-to-customize-form-field-options/) guide.

Don’t forget to save your form after customizing the Coupon field.

**Note:**  After saving your form, be sure to test it out before launching it to your users. For a detailed guide, please refer to our [form testing checklist](https://wpforms.com/docs/how-to-properly-test-your-wordpress-forms-before-launching-checklist/) guide.

## Frequently Asked Questions

These are answers to some top questions about using the Coupons addon with WPForms.

#### How do I allow users to submit the form when a 100% off discount is applied?

By default, if a user applies a coupon code that offers a 100% discount, the form won’t submit. Users will likely see an error similar to the one in the image below.

![Stripe payment form not submitted](https://wpforms.com/wp-content/uploads/2023/07/form-not-submitted.png "Stripe Payment Form Not Submitted")This occurs because most payment gateways can’t process a form with 0 value as the payment amount.

A quick workaround for this is to use conditional logic to prevent the form from processing the payment if the **Total** field’s value is 0.

To set this up, log in to your WordPress admin area and open the payment form you wish to enable 100% discount on.

**Note:** For this example, we’ll use the [Stripe Pro addon](https://wpforms.com/docs/how-to-install-and-use-the-stripe-addon-with-wpforms/). But this solution also works with all our other payment addons.

In the form builder, go to **Payments » Stripe** to access the Stripe settings page.

![Stripe settings page in the form builder](https://wpforms.com/wp-content/uploads/2023/07/stripe-payment-settings.png "Stripe Settings Page in the Form Builder")Next, scroll down and toggle on the **Enable Conditional Logic** option.

![Enable conditional logic for stripe payment](https://wpforms.com/wp-content/uploads/2023/07/enable-conditional-logic.png "Enable Conditional Logic For Stripe Payment")After that, set the condition to say: **Don’t process** this charge if the **Coupon** field is **JULY100OFF**.

![Conditional logic rule to disable Stripe payment processing](https://wpforms.com/wp-content/uploads/2023/07/conditional-logic-rule.png "Conditional Logic Rule to Disable Stripe Payments")This logic will essentially prevent the payment from processing if the coupon code matches the one in the conditional logic rule.

**Note:** Be sure to replace **JULY100OFF** with the coupon code you intend using to offer users 100% discount.

After setting the conditional logic rule, return to the fields tab and select the payment field to open its Field Options.

![Select Payment Field](https://wpforms.com/wp-content/uploads/2023/07/select-payment-field.png "Select Payment Field")**Note:** If you’re using the [PayPal Standard addon](https://wpforms.com/docs/install-use-paypal-addon-wpforms/), you can skip the steps below and proceed to [test your form](https://wpforms.com/docs/how-to-properly-test-your-wordpress-forms-before-launching-checklist/) to ensure it works properly.

In the **Field Options** panel, navigate to the **Smart Logic** tab and toggle on the **Enable Conditional Logic** option.

![Enable conditional logic for Stripe field](https://wpforms.com/wp-content/uploads/2023/07/enable-conditional-logic-stripe-field.png "Enable Conditional Logic For Stripe Field")Next, set the rule to say: **Hide** this field if the **Coupon** field is **JULY100OFF**. Again remember to replace **JULY100OFF** with your coupon code.

![Stripe field conditional logic rule](https://wpforms.com/wp-content/uploads/2023/07/stripe-field-conditional-logic.png "Stripe Field Conditional Logic Rule")Setting this rule will hide the Stripe Credit Card field if the user enters a coupon code that matches the one you set in the [conditional logic](https://wpforms.com/docs/how-to-use-conditional-logic-with-wpforms/) rule. This ensures users will be able to submit your form without filling out the required credit card field.

After configuring the conditional logic rule, be sure to save your changes. Once done, we recommend [testing your form](https://wpforms.com/docs/how-to-properly-test-your-wordpress-forms-before-launching-checklist/) to ensure everything looks and works as expected.

That’s it! Now you know how to create coupons for any form on your site using the Coupons addon.

Next, wondering how to track and manage the coupons you’ve created for your WordPress forms? Be sure to check out our guide to [viewing and managing coupons](https://wpforms.com/docs/viewing-and-managing-coupons/) for more details.

**Categories:** Payment Forms, Addons

---

