Z
Z
ZaurK2018-05-24 15:48:58
Yii
ZaurK, 2018-05-24 15:48:58

How to keep ajax validation of multiple forms on a page?

On one page, I connect two widgets as in the example of a pop-up form, as a result, Ajax validation is saved only for the form whose widget I called earlier, for the second form, Ajax validation stops working. If you look at the code in the developer tool, you can see that the fields of these forms have the same classes only, I changed the classes so that they do not match, there is no result. Has anyone encountered a similar problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-05-24
@ZaurK

Good afternoon.
Here is an example for one form.
If there are several forms, then each form must have its own individual id. Don't pay attention to field classes at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question