Form Builder
After Submission Actions
Configure what happens when a customer submits your form success messages, redirects, duplicate prevention, and custom JavaScript.
Last updated June 15, 2026
The After Submission Action setting controls what the customer sees and what happens in the browser immediately after a successful form submission. Find it in the Settings panel → After Submission Action.
Available actions
| Action | Description |
|---|---|
| Clear & Show Message | Clears the form and shows a success message. Default behavior. |
| Clear & Allow Resubmit | Clears the form and lets the same customer submit again immediately. |
| Redirect to URL | Redirects the browser to a URL you specify after submission. |
| Hide Form & Show Message | Hides the entire form and shows a thank-you message in its place. |
| Clear & Prevent (Email) | Clears the form and prevents that email address from submitting again. |
| Clear & Prevent (Phone) | Clears the form and prevents that phone number from submitting again. |
Success message
Customize the success message shown after submission. The message supports rich text and merge tags placeholders replaced with real submission values.
Merge tags
| Tag | Replaced with |
|---|---|
[form_name] | The name of the form |
[form_id] | The form's unique ID |
[response_id] | The ID of this specific submission |
[customer_name] | The name submitted by the customer |
[Field_Label] | The value from any specific field replace Field_Label with the field's label (use underscores for spaces) |
Example success message:
Thank you, [customer_name]! We've received your message (Ref: #[response_id]) and will get back to you within 24 hours.Redirect to URL
When Redirect to URL is selected, enter the full destination URL. The redirect happens immediately after the form is submitted and the success logic runs.
Discount code redirect delay
If Discount Code Generation is also enabled on the form, the redirect is automatically delayed by 5 seconds so the customer has time to copy their discount code before being sent away.
Discount code on submit
Pro+ plans.
When the Discount Code feature is enabled, a unique discount code is generated for each submission and displayed in the success message area with a Copy button.
Custom JavaScript hooks
Pro+ plans.
Run your own JavaScript at key moments in the form lifecycle, per form:
| Hook | When it runs |
|---|---|
| After Form Load JS | After the form is fully rendered on the page |
| After Form Submit JS | After a successful form submission |
Find these fields in Form Settings → Advanced → Custom JavaScript.
After Form Submit example:
// 'response' is the server response object
console.log('Submitted!', response);
gtag('event', 'form_submit', { form_name: 'Contact Form' });After Form Load example:
// Pre-populate a field by its name attribute
document.querySelector('[name="your_field_name"]').value = 'Pre-filled value';Use the After Form Submit hook to fire Google Analytics events, send data to a custom endpoint, or trigger a UI change on your page after submission.
Was this page helpful?