Shopify
Discount Code Generation
Automatically generate a unique Shopify discount code per form submission and display it in the success message. Available on Pro and Pro+ plans.
Last updated June 15, 2026
Discount Code Generation creates a unique Shopify discount code for each form submission and displays it in the success message with a one-click copy button. Use it to reward customers for completing surveys, signing up for newsletters, or submitting feedback.
Available on Pro and Pro+ plans.
How to set up
Create a Price Rule in Shopify
Go to Shopify Admin → Discounts → Create discount → Discount code → Amount off order (or any discount type). Configure the discount value and conditions. Note the Price Rule ID from the URL after saving.
Enable discount code in the form
In the form builder → Settings → Shopify → Discount Code → toggle Enable Discount Code on.
Select the Price Rule
Enter or select the Price Rule ID from the Shopify discount you created.
Set a code prefix (optional)
Enter a prefix to prepend to generated codes (e.g. THANKS- → generates codes like THANKS-AB12CD34).
Save
Click Save.
How it works after submission
- Customer submits the form.
- The app generates a unique discount code using the Price Rule you selected.
- The code is displayed in the success message area with a Copy button.
- The code is also saved in the form response record.
Redirect delay
If the form's After Submission Action is set to Redirect to URL, the redirect is automatically delayed by 5 seconds when discount code generation is enabled. This gives the customer time to read and copy their code before being navigated away.
Include the code in the success message
Customize your success message to tell the customer to copy their code:
"Thank you for your feedback! Here's your exclusive discount code copy it before you go:"
The discount code is displayed automatically below your message.
Viewing generated codes
Generated discount codes appear in:
- The form Response Detail View in the app dashboard
- The customer's Admin Email notification (if included with the
[discount_code]merge tag) - Shopify Admin → Discounts where each code appears as an individual discount code under the price rule
Was this page helpful?