SOLVED

Open a new tab after form submission

Go to solution
Anonymous
Not applicable

Re: Open a new tab after form submission

Hi Kym,

Interesting. Have you considered or tried putting their page as an iframe on the subsequent follow up page, as opposed to opening a new window?

Reade Triolo
Anonymous
Not applicable

Re: Open a new tab after form submission

Hi All,

I am trying to get this to work with no luck here is my code can someone help me out?

<div id="mktForm" class="mktEditable">
      <script src="//app-ab01.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1842"></form>
<script>MktoForms2.loadForm("//app-ab01.marketo.com", "320-KOG-016", 1842);</script>
        <script type="text/javascript">
$jQ('#mktFrmSubmit').click(function() {
var mktErrorMsgContent = $jQ('.mktFormMsg').html();
if (mktErrorMsgContent != 'This field is required') {
window.open('http://xxx.xxx/xxx.pdf'); //<-- Change this to your url
}
});
</script>
      </div>

Thanks!
Eric