Thank You message not appearing in after Form submission in iFrame
I've crated a landing page with a Form inside of it.
I am showing the landing page+form via an iFrame in a popup .
The form shows up correctly and submits properly, but the Thank You message is never shown (still has the visibility=true inline style).
I have 3 layers on my landing page.
1. Header Graphic
2. Form
3. Thank You Message code:
<script src="//app-ab13.marketo.com/js/forms2/js/forms2.min.js" type="text/javascript"></script>
<script>
MktoForms2.whenReady(function (form){
//Add an onSuccess handler
form.onSuccess(function(values, followUpUrl){
//get the form's jQuery element and hide it
form.getFormElem().hide();
document.getElementById('confirmform').style.visibility = 'visible';
//return false to prevent the submission handler from taking the lead to the follow up url.
return false;
});
});
</script>
<div id="confirmform" style="visibility:hidden;"><p><strong>Thank you. Check your email for details on your request.</strong></p></div>
Any clue as to why the Thank You message never appears?