artoodetoo / formToWizard

Turn any webform into multi-step wizard with jQuery
MIT License
55 stars 26 forks source link

Remote Validation #1

Closed zagreusinoz closed 8 years ago

zagreusinoz commented 8 years ago

I've got a remote validation rule on my form, however the wizard doesn't wait for that to return it's result before moving to the next page. Any suggestions on what to do? `jQuery('#SignupForm').validate({ rules: { email: { required: true, email: true, remote: the_ajax_script.ajaxurl } }, errorPlacement: function (error, element) { if (element.attr("name") == "email" && jQuery("#passwordpanel").is(":hidden")) { jQuery("#passwordpanel").slideDown("slow"); } else { error.insertAfter(element); } }, errorElement: 'em',

});`