Edit Code on a Form to Open in a New Tab after Download is Complete

Anonymous
Not applicable

Edit Code on a Form to Open in a New Tab after Download is Complete

Hello. We are using forms on our Marketo landing pages. The forms include different fields that must be filled out in order to download and view a PDF document. Once someone completes the fields and submits for the download, the downloaded PDF opens in the same tab rather than a new tab. This is directing them away from our website because then the landing page is no longer open.

How can we edit our code for the form to make the PDF open in a new tab? Is there a way to edit the code on a form when the form is not available under "Designer"? If so, where can we go to edit this and what coding would we need to input for the PDF to open in a new tab?

Thanks!

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: Edit Code on a Form to Open in a New Tab after Download is Complete

Search the Community for 'window.open thank you'.  Follow my code examples.

Anonymous
Not applicable

Re: Edit Code on a Form to Open in a New Tab after Download is Complete

I have been trying to search the Community and your profile of what you have posted or commented on, and I cannot find that.

Can you send a link to it or copy the examples here please? Thanks!

SanfordWhiteman
Level 10 - Community Moderator

Re: Edit Code on a Form to Open in a New Tab after Download is Complete