- Navigate to Marketing > Forms.
- Either edit an existing form or create a new form.
- During Step 4 (Completion Actions) of the Form Wizard, click on the Thank You Code tab.
- Copy and paste the following code in the text area field:
- If editing an existing form, click Finish to save. If creating a new form, click Next to go to the confirmation page and then click Finish to save.
When your Pardot form is in an iframeWhen your Pardot form exists in an iframe on your site, the redirect location in the above sample will load within the iframe (not ideal). To have the redirect location happen outside of the iframe, use this code sample instead:
Thank you for completing this form! You will be redirected back to the home page in 5 seconds. If not, click here!