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