Skip to main content
Level 1
Oct 30, 2020 10:44 PM UTC
Solved

How do I use one form on multiple landing pages that drive to different thank you pages

Hi,

If I create one form in design studio to use on multiple pages each for different actions (content offer, trial offer, etc), how does the form fill on page X direct the user to 'thank you page X' vs page Y (with the same form) directing the user to 'thank you page Y'?

 

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Oct 30, 2020 11:57 PM UTC

You have to set a Hidden field to the current URL.

Add this code to the page (if a Marketo LP, put it just before the closing </body>, otherwise just put it right after the form embed):

 

MktoForms2.whenReady(function(mktoForm){ mktoForm.setValues({ lastMarketoFormURL : document.location.href }); });

 

 

Create the field in Field Management:

 

Add it to the form in Form Editor:

 

Then you can use Add Choice in Form Editor to select an Advanced Thank You.

 

2 replies

SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Oct 30, 2020 11:57 PM UTC

You have to set a Hidden field to the current URL.

Add this code to the page (if a Marketo LP, put it just before the closing </body>, otherwise just put it right after the form embed):

 

MktoForms2.whenReady(function(mktoForm){ mktoForm.setValues({ lastMarketoFormURL : document.location.href }); });

 

 

Create the field in Field Management:

 

Add it to the form in Form Editor:

 

Then you can use Add Choice in Form Editor to select an Advanced Thank You.

 

Translate
kazarAuthor
Level 1
Nov 1, 2020 4:00 PM UTC

Thank you!

Translate