Hi,
I hope someone can help me.
Issue:
I am having issues where once a user submits the form they should be directed to an external "Thank You" page, however, they are not re-directed (Thank You: Contact Submission - Video – HomeUnion ), but are staying on the page.
Here is how it is in Marketo:
Our Contact us Page: Contact HomeUnion to Invest in Residential Real Estate across the US
Actual Result: This is what is shown when a user submits:
here is what is in the HTML:
Expected Result: User should be redirected here: Thank You: Contact Submission - Video – HomeUnion
Hope someone can help! Thanks!
Because you have code in the page that's specifically canceling the standard success behavior:
MktoForms2.whenReady(function (form) {
form.onSuccess(function (values, followUpUrl) {
if(values.formid=='2946'){
var url = pathInfo + '/functions/formsubmit.php'; // the script where you handle the form input.
jQuery.ajax({
type: "POST",
url: url,
data: values, // serializes the form's elements.
success: function(data)
{
//alert(data); // show response from the php script.
}
});
}
form.getFormElem().hide();
document.getElementById('confirmform').style.visibility = 'visible';
return false;
});
});
Please try to keep aware of what else you're running on your LPs. This is hardly a standard form setup.
Thank you so much for getting back to us. We had our dev look into it:
That script only runs on form ‘2946’ – which is our ‘Get Approval Form’ popup– The Script does not run it on form on our Contact Form #2608. Could you please enlighten us to where the issue may be?
Look at line 788 of the same file.
I shouldn't have to do your dev's job for them: it's one thing to not have a developer on hand at all, quite another to have one who's incapable of searching view-source.