Hi Calvin,
I've tried the following script, without success:
---
<script>
MktoForms2.whenReady(function (form){
MktoForms2.loadForm("//app-lon03.marketo.com", "775-TUF-466", 1216, function(form){
//Add an onSuccess handler
form.onSuccess(function(values, followUpUrl){
var vals = form.vals();
var email = vals.Email;
//Take the lead to a different page on successful submit, ignoring the form's configured followUpUrl.
document.location.href = "https://www.getfeedback.com/r/e3OAl3Ne&email=" + email;
//return false to prevent the submission handler continuing with its own processing
return false;
});
});
});
</script>
---
Notes:
- Form is located on a marketo landing page
- landing pag URL is http://pages.potential.com/JK-TEST-LANDING-PAGE.html