Route form fill to specific thank you page based on the URL | Community
Skip to main content
Level 2
March 17, 2017
Solved

Route form fill to specific thank you page based on the URL

  • March 17, 2017
  • 1 reply
  • 6265 views

Is there a way to route a form fill to a specific thank you page based on the URL where the form lives? We are hosting our landing pages on the CMS and would like to prevent the creation of multiple forms.

Best answer by SanfordWhiteman

Sure, you can do this in 2 ways:

1. In an onSuccess listener, dynamically choose the Thank You based on the current URL (for example, appending "_ThankYou" to the current page).

2. In the form setup, by using Add Choice on the Settings page.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
March 17, 2017

Sure, you can do this in 2 ways:

1. In an onSuccess listener, dynamically choose the Thank You based on the current URL (for example, appending "_ThankYou" to the current page).

2. In the form setup, by using Add Choice on the Settings page.

August 17, 2017

Hi Sandford

I can't actually see the referrer URL as an option you can select when setting the choice for the thank you page. It is only offering the fields/questions I have on the form. Can you outline how you would do this? Am I missing something?

SanfordWhiteman
Level 10
August 17, 2017

You'd have to add the field to the form, as here: https://nation.marketo.com/message/79664#comment-79664

Then you can use it in conditions.