AnsweredAssumed Answered

New Tab After Forms 2.0 Submission

Question asked by 40114 on Mar 4, 2014
Latest reply on Dec 31, 2014 by ac45fab13754c169005e6cd7260402c3e0162039
Hello,

I like to open up the content (a PDF) and another page/tab when a visitor fills out a form on a Marketo landing page.  I've had very good success in generating web activity and additional leads by doing this.

In the past, I've used this code as an HTML element:
     <script type="text/javascript">
     $jQ('#mktFrmSubmit').click(function() {
     var mktErrorMsgContent = $jQ('.mktFormMsg').html();
     if (mktErrorMsgContent != 'This field is required') {
     window.open('http://url');
     }
     });
     </script>

     From this discussion:
     https://community.marketo.com/MarketoDiscussionDetail?id=90650000000PYNmAAO

     Ths code no longer works with Forms 2.0.  Does anyone have any ideas as to how it can be modified to work with the new forms, if possible?

     Thank you,
     Alex

Outcomes