New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple forms on one page validation problem #188
Comments
Give name to forms via |
thx, sorry the code is misleading! I already did that. The issue that I reported occurs even when I give names to the forms! Please see the screencast in the linked post. |
…loses #188] Solution: set Nette\Forms\Controls\BaseControl::$idMask = 'frm-%2$s-%1$s';
I fixed it in code, but for back compatibility you have to set |
…loses #188] Solution: set Nette\Forms\Controls\BaseControl::$idMask = 'frm-%2$s-%1$s';
…loses #188] Solution: set Nette\Forms\Controls\BaseControl::$idMask = 'frm-%2$s-%1$s';
It's funny. I try to upgrade from Nette 2.0 to 2.4 (using mostly forms only) and I am glad I waited so long, because I use multiple forms on one page and in Nette 2.0 it was already implemented - the $idMask then was "frm%s-%s". It means I have to use "frm%2$s-%1$s" today. And I am very happy, that it's working again as it IMHO always should be. The only difference is, that the default implementation now will create errors without manual changing the $idMask, because the $idMask is 'frm-%s'. |
Version: ?.?.?
Bug Description
There are 2 problems with multiple forms on one page:
Please see this forum post for screenshots and a screencast:
https://forum.nette.org/en/30969-multiple-forms-on-one-page-standalone-version#p198618
Expected Behavior
all fields should have unique names
The text was updated successfully, but these errors were encountered: