Answer the question
In order to leave comments, you need to log in
How can I make a popup form with validation?
The site is written in Yii2.
There is a need for a pop-up form filling with validation.
Now I use Modal, and with the help of Ajax (renderAjax) I draw the contents of the window. When the form is loaded, problems with duplication of js libraries begin.
Rescues ActiveForm from Kartik with the async=true attribute, but in this case, when submitting, the form freezes for a while, during which you can click the submit button several more times.
What is the most elegant way to solve this problem? Need a form in a modal window and different depending on whether the user is a guest or an authorized user?
Answer the question
In order to leave comments, you need to log in
js libraries are duplicated, but this does not cause the same conflict. I have a whole system built this way. And nothing, it works.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question