Hi I am trying to use the forms 2.0 api on our website. I was interested in using two different forms in order to break up the overall length of the form. I was wondering if it is possible to load another form after one has been submitted. I just was wondering if anyone has a working code example of this. This is what I have so far, thanks.
-John
<script>
MktoForms2.loadForm("//app-sjp.marketo.com", "466-AGZ-592", 333, function(form) {
form.onSuccess(function(callback) {
form.getFormElem().hide();
MktoForms2.loadForm("//app-sjp.marketo.com", "466-AGZ-592", 334, function(forms) {
form.getFormElem().show();
});
});
});
</script>