How do I get my Marketo form follow up external URL to open in new window. I have tried a few codes and I can't seem to get it work correctly. I have 3 options depending "external URL's" it may open in depending on a selection by the user. Currently it opens in a the same window.
Solved! Go to Solution.
You replace the quoted string
"http://whatever.example.com"
with the exact text
thankYouURL
as noted above.
There's nothing more to it; it's replacing a quoted string with an unquoted variable name.
Thanks for the reply.
I have tried this code already however the target links overrides the logic in the form External URL logic. There are currently 3 options for external links.
The variable
thankYouURL
is the value of the Advanced Thank You Page, as decided using the options in Form Editor. Merely use that instead of a hard-coded value.
So what do I need to change in the below code so the target URL is what is the form editor?
You've circled the hard-coded string, the URL in quotes.
Replace that with the variable. (Obvs. removing the quotes.)
yes however, how do I put in variable URL's in this code? Can you please provide an example?
ok perfect - thank you.
All working now.
Good to hear. Please mark one of my answers as Correct, thanks.