SOLVED

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

Go to solution
Highlighted
Level 1

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Level 10 - Community Moderator

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

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:

2020-10-30 19_42_52-Marketo _ Field Management • Admin.png

 

Add it to the form in Form Editor:

2020-10-30 19_52_42-fO.png

 

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

2020-10-30 19_55_42-fO.png

 

View solution in original post

2 REPLIES 2
Highlighted
Level 10 - Community Moderator

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

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:

2020-10-30 19_42_52-Marketo _ Field Management • Admin.png

 

Add it to the form in Form Editor:

2020-10-30 19_52_42-fO.png

 

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

2020-10-30 19_55_42-fO.png

 

View solution in original post

Highlighted
Level 1

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

Thank you!