M
M
Maxim Timofeev2017-09-11 14:22:58
JavaScript
Maxim Timofeev, 2017-09-11 14:22:58

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

1 answer(s)
M
Maxim Fedorov, 2017-09-12
@webinar

$("#myform").on("afterValidate", function (event, messages) {   
    console.log(messages);
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question