Open New Tab After Form Submission for Downloads | Community
Skip to main content
New Participant
May 3, 2022
Solved

Open New Tab After Form Submission for Downloads

  • May 3, 2022
  • 1 reply
  • 1730 views

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>
Best answer by SanfordWhiteman

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

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
May 3, 2022

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