This content has been marked as final.
Show 2 replies
-
Re: dynamic destination url for iframed marketo landing pages
Floyd Alvares Nov 13, 2018 10:50 PM (in response to Darrell Alfonso)2 of 2 people found this helpfulHi Darrell,
If this is a Marketo Form on a Marketo Landing Page, could you not utilize the default functionality if you want to redirect the user to a different page?
However, I guess since you are iframing the Marketo Landing Page into your Wordpress page, you would probably need a script to load the follow up page into the destination page.
Thanks
Floyd
-
Re: dynamic destination url for iframed marketo landing pages
Sanford Whiteman Nov 13, 2018 11:16 PM (in response to Floyd Alvares)1 of 1 people found this helpfulThat's correct, Floyd. There's no need to use JS to manage the choice of Thank You URLs -- the Form Editor choices will still work -- but you do need to use JS to redirect the parent document.
MktoForms2.whenReady(function(form){ form.onSuccess(function(vals,tyURL){ window.parent.location = tyURL; return false; }); });
-