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!
Solved! Go to Solution.
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.
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.
Thank you!