Is there a way to setup an action if the our marketo form fails and hangs on "Please Wait" when submitted?
Currently I am using the below to redirect after submission and it works great. I just want to make sure there aren't any other fail safes I can build in if the form cannot submit.
function(form) {
form.onSuccessfunction(values, followUpUrl){
var firstVal = document.getElementById("FirstName").value;
var lastVal = document.getElementById("LastName").value;
var phoneVal = document.getElementById("Phone").value;
var emailVal = document.getElementById("Email").value;
location.href = "website?phone=" + phoneVal + "&firstname=" + firstVal + "&lastname=" + lastVal + "&email=" + emailVal;
return false;
});