SOLVED

Open New Tab After Form Submission for Downloads

Go to solution
mattcastro23
Level 1

Open New Tab After Form Submission for Downloads

Hi there,

 

I am trying to get my Marketo form to open the file download in a new tab when a user submits the form. I've gone through countless of these posts with solutions, but they're all either outdated or in javascript, and as a beginner to coding/Marketo, I'd like to submit this post asking for help with editing the HTML code below so that it opens the file in a new tab.

 

Thank you in advance to anyone that helps!

 

<script src="//sponsors.aha.org/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_2464"></form>
<script>MktoForms2.loadForm("//sponsors.aha.org", "710-ZLL-651", 2464);</script>
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Open New Tab After Form Submission for Downloads


I've gone through countless of these posts with solutions, but they're all either outdated or in javascript,

They’re all in JavaScript because you must use JavaScript. Even the code you posted is 2 JS blocks and one HTML <form>!

 

It will never get simpler than this:

 

MktoForms2 :: Thank You asset in new window

View solution in original post

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Open New Tab After Form Submission for Downloads


I've gone through countless of these posts with solutions, but they're all either outdated or in javascript,

They’re all in JavaScript because you must use JavaScript. Even the code you posted is 2 JS blocks and one HTML <form>!

 

It will never get simpler than this:

 

MktoForms2 :: Thank You asset in new window