Answer the question
In order to leave comments, you need to log in
How to display js activeForm validation errors in the console?
Js activeform freaks out intermittently. Blocks form submission, but no visible errors. But they are clearly there, since when client-side validation is disabled, everything works fine. What is there in it is not validated, although it should - xs. There should be a method, in theory, to display the results of validation in the browser console in order to understand what is wrong with it. I can’t find a description of the methods anywhere, I just found api by events.
Answer the question
In order to leave comments, you need to log in
$("#myform").on("afterValidate", function (event, messages) {
console.log(messages);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question