Hello,
you could try out this solution:
1) Exclude the default submit button.
2) Create a custom submit button and name it "submit".
3) Go to the Advanced tba > Actionscript > Actions > Click > Type > Custom and paste this code in the framework:
function ff_submit_action(element, action)
{
switch (action) {
case 'click':
if(typeof bfUseErrorAlerts != 'undefined'){
JQuery(".bfErrorMessage").html('');
JQuery(".bfErrorMessage").css("display","none");
}
error = ff_validation(ff_currentpage);
if (error != '') {
if(typeof bfUseErrorAlerts == 'undefined'){
alert(error);
} else {
bfShowErrors(error);
}
ff_validationFocus('');
} else{
jQuery.ajax({
type: "POST",
url: JQuery(element).closest("form").attr("action"),
data: JQuery(element).closest("form").serialize(),
success: function(data)
{
location.href="http://www.yahoo.com";
}
});}
break;
default:;
}
}
NOTE: Replace
www.yahoo.com with the URL address of your form.
Basically, this script will validate and submit the form. After that, it will redirect to another page.
Try and let me know if it's working for you.
Regards,
Marko
======================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
======================================
Need to renew Pro Support?
Buy Here!
======================================
Satisfied?
Consider a Membership!
======================================
Follow us on
Facebook!