Solved! Go to Solution.
Hi, I would like to so a similar thing but the code provided is not working for me. Maybe I am writing it wrong? Any feedback would be highly appreciated.
<script src="//app-ab06.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1133"></form>
<div id="msg" style="display:none;"> Thank you</div>
<script>MktoForms2.loadForm("//app-ab06.marketo.com", "790-LFQ-371", 1133,function(form) {
// Add an onSuccess handler
// Add an onSuccess handler
form.onSuccess(function(values, followUpUrl) {
// Get the form's jQuery element and hide it
form.getFormElem().hide();
$('#msg').show();
return false;
});
});
</script>
There are many recipes to accomplish this kind of thing -- search old Comm'ty posts for my demos.
Here's one: MktoForms2 :: Replace Form with TY Text