SOLVED

Marketo form follow up external URL to open in new window

Go to solution

Marketo form follow up external URL to open in new window

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. 

pastedImage_1.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Level 10 - Community Moderator

Re: Marketo form follow up external URL to open in new window

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.

View solution in original post

9 REPLIES 9
Highlighted
Level 10 - Community Moderator

Re: Marketo form follow up external URL to open in new window

Highlighted

Re: Marketo form follow up external URL to open in new window

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.

pastedImage_1.png

pastedImage_1.png

Highlighted
Level 10 - Community Moderator

Re: Marketo form follow up external URL to open in new window

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.

Highlighted

Re: Marketo form follow up external URL to open in new window

So what do I need to change in the below code so  the target URL is what is the form editor? 

pastedImage_1.png

Highlighted
Level 10 - Community Moderator

Re: Marketo form follow up external URL to open in new window

You've circled the hard-coded string, the URL in quotes.

Replace that with the variable. (Obvs. removing the quotes.)

Highlighted

Re: Marketo form follow up external URL to open in new window

yes however, how do I put in variable URL's in this code? Can you please provide an example?

Highlighted
Level 10 - Community Moderator

Re: Marketo form follow up external URL to open in new window

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.

View solution in original post

Highlighted

Re: Marketo form follow up external URL to open in new window

ok perfect - thank you.

All working now.

Highlighted
Level 10 - Community Moderator

Re: Marketo form follow up external URL to open in new window

Good to hear. Please mark one of my answers as Correct, thanks.