Question
Forms 2.0: iFrame follow-up script no longer works
Many of our Marketo forms are integrated into our website using iFrames. Prior to Forms 2.0, we placed a small block of javascript code to enable the follow-up page to load in a full window (instead of within the iframe):
<script type="text/javascript" src="/js/public/jquery-latest.min.js"></script>
<script type="text/javascript">
// set no conflict mode for jquery
var $jQ = jQuery.noConflict();
$jQ(document).ready(function(){
// all form submits will open in a new window
$jQ('.lpeRegForm').attr('target','_blank');
});
</script>
I changed the bold line above to:
$jQ('.mktoForm').attr('target','_blank');
to reflect the new form <div> ID that's being used. But this still isn't working. Are there any others in this community that have deployed Forms 2.0 using iFrames and have gotten the follow-up page to open in a full window?
<script type="text/javascript" src="/js/public/jquery-latest.min.js"></script>
<script type="text/javascript">
// set no conflict mode for jquery
var $jQ = jQuery.noConflict();
$jQ(document).ready(function(){
// all form submits will open in a new window
$jQ('.lpeRegForm').attr('target','_blank');
});
</script>
I changed the bold line above to:
$jQ('.mktoForm').attr('target','_blank');
to reflect the new form <div> ID that's being used. But this still isn't working. Are there any others in this community that have deployed Forms 2.0 using iFrames and have gotten the follow-up page to open in a full window?