Create One Time Discounts on Your Payment Forms

Nadia A. By Nadia A. | August 6, 2018

Discounts are a great way to encourage your customers and reward them with exciting deals. In a previous post, we highlighted three easy ways to create discounts on your payment forms, including early bird specials, volume discounts, and coupon codes.

In addition to rewarding existing customers, discounts also have the major benefit of attracting new customers; offering people a discount might be just the thing that gets more customers in the door. In this post, we’re going to walk through the process of creating a special discount just for first-time buyers!

Creating Your Discount

In this example, we’ll reward customers with a 10% discount when they place their first order. Essentially, we just need to limit the discount based on the customer’s email address and ensure that they only receive the discount once.

  1. If you haven’t already, create a payment form - our basic sales form template is a great place to start.

  2. Make sure that your form has an Email field to collect the customer’s email address. Select the Email field in the builder, and find the Limit Quantity option in the field settings.

  3. Select Specific Quantity and specify a quantity of 100 or more. In this case, we’re just trying to track quantities rather than preventing submissions - so try to specify a number based on your anticipated volume of orders.

  4. Add a Price field to your form labeled New Customer Discount (or something similar). Optionally, you can set this field to display internally so the discount only appears as a line item.

  5. In the Amount section of your Price field settings, write a calculation to calculate a discount percentage: =if Email_QuantityUsed = 1 then -0.1*MyOrder.Sum(ItemTotal) else 0

  6. This calculation is based on the basic sales form template, which contains an Item Total field within a repeating section. The calculation adds up the total of all the Item Total fields to calculate the subtotal. If your payment form doesn’t have repeating sections, you can just add up all the payment fields on your form like so: =if Email_QuantityUsed = 1 then -0.1*(PaymentField1 + PaymentField2 + PaymentField3) else 0 Be sure to check out our help topic and tutorial video for more tips on how to build discount codes.

  7. Don’t forget to save your changes!

Try It Out

To test out your new discount code, try opening your form and submitting a new entry. If the email address is unique, a 10% discount should be applied to the order total:

If you’re running your promotion for a limited amount of time, simply turn off quantity limits on your Email field and hide the Discount field when it’s over.

Any questions? Be sure to get in touch with us, or leave a comment below!


Nadia A.

Nadia A.

Nadia, the Technical Writer for Cognito Forms, develops documentation, support content, and how-to videos. No matter your experience – with her help, you'll be able to take full advantage of the product. In her spare time, Nadia enjoys listening to French house, drinking coffee, and talking about herself in third person.

Cognito Forms allows you to easily build powerful forms. Sign Up Now
Blog