Offer discounted prices in a form
In this article:
While the primary purpose of LGL Forms is to help you collect online donations and build a recurring gift program, many of our customers also manage ticket sales or event registration fees using forms. Some organizations also provide discount codes for registration/tickets and want to offer the option for registrants to apply the code in their event registration form to receive a discount on the cost.
While LGL Forms does not offer the ability for a discount code to be applied to a total dollar amount in a form, it is possible to set up a form that uses a simple discount code scenario, where the discounted pricing is displayed when the form user supplies the correct discount or promo code.
How it works
Setting up a form to offer a set of discount options requires:
- Adding a promo or discount field (using a "Single-line input" field), with a display rule set to equal the name of the code
- Creating multiple copies of your form’s "Amount" field, with one set of discounted amounts listed in each, and then
- Using display rules to determine when to show which set
NOTE: If you place a display rule on a form field that is set to "Required", if that field is hidden by the display rule it will no longer be required to be completed in order for the form to be submitted.
By default, the general/non-discount field will display in the form. When one of the codes is typed into the applicable field, that field will disappear and be replaced by the appropriate discount field.
While it’s your choice how many levels of discount to offer, we recommend only one or two. The fields and mapping required to set up the discounted pricing will quickly become difficult to navigate and manage for a higher number of discount levels.
NOTE: LGL Forms does not offer the ability to be based on “this condition OR that condition” simultaneously because a display rule for a field can be based only on input from a single field. An example of a single input type is the answer to the request, “Please type your promo code here”.
Example: Use display rules to show discounted prices for event tickets
To build a single set of discount prices into your event registration form, follow these instructions.
- Build your event registration form, including a "Single-line input" field where users can input their promo or discount code.
- Add an "Amount" field for each set of prices, discounted and full rate, that you are offering. This screenshot shows an example of how this should look.
- Add display rules to the full price "Amount" field to prevent the discount prices from displaying if your registrant doesn’t add a promo code:
- Do the same for the discounted price "Amount" field, but cause it to display when the promo code is added:
- In your form mapping, you can use an "Amount" field for each set of amounts: 1. “Amount with discount” (the discounted amount) and, 2. “Amount” (the full price):
NOTE: In your form, you won’t want to provide the promo code that will unlock the discount prices. We have provided this here as an informational aid to share the discount code with you so that you can test that the form is working.
NOTE: Remember to click the Save & publish button when you’re done editing your form:
NOTE: When your fields are all mapped, remember to click the Save & Finish button:
Now you have a form that will display a discounted set of prices when your donor types the correct promo code of “50off” into the Promo code field: