Help with Calback validationEngine

Asked

Viewed 32 times

2

I’m using the validationEngine for a form validation and sending after all completed. So far so good. However I need to recover some data from the registration after confirmation.

Once the user fills in the data, he submits the form, the data will be recorded in the database. So far so good, but when he submits the form he is processed in a Modal window, and I need the return in this Modal window to come up with some data that the customer has filled in to show him a friendly response .

Example- (Congratulations so-and-so, your registration was made with success, an email will be sent to [email protected] with the access information!)

Calback’s answer must always be true, and I would like to receive in status more feedback data, otherwise it does not work, someone can give me a light?

jQuery("#form").validationEngine({
   scroll: false,
   ajaxFormValidation: true,
   ajaxFormValidationMethod: "post",
   ajaxFormValidationURL: "phpajax/processa.php",      
   onAjaxFormComplete: ajaxValidationCallback,     
});

function ajaxValidationCallback(status, form, options){
   if (console) 
      console.log(status);
      alert(status)
   if (status === true) {
      alert("Ok");
   }
}
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.