Using Marketo forms
Configuring Marketo forms for use in your templates
Customizing thank you page
The normal Marketo form javascript looks something like this:
If you would like to customize the form to route the lead to a custom thank you page, you can modify this javascript. Note: make sure that you maintain the three existing values from your Marketo form.
In the above code, you can customize the /your-thank-you-page-url/ and change that to your thank you page.
Using base_directory
If the form within your template will be used on multiple sites under different base_directory paths, you can use our macro to dynamically generate the correct thank you page URL.
Last updated