Does anyone know why my handler has stopped working? I made a change to the number of fields on the form and it seems to have broken it.
The form settings have a fallback page of a home page redirect, but this usually interrupts it, but has stopped doing so and filling in the form takes you to the home page now.
<script src="//MYSITEHERE.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1058"></form>
<script>MktoForms2.loadForm("//MYSITEHERE.com", "465-NDL-037", 1058, function(form) {
//Add an onSuccess handler
form.onSuccess(function(values, followUpUrl) {
// Take the lead to a different page on successful submit, ignoring the form's configured followUpUrl
location.href = "MYSITEHERE.com/PAGE";
// Return false to prevent the submission handler continuing with its own processing
return false;
});
});
</script>
... View more