-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] Add "validate" option to buttons which sets formnovalidate and disables validation #8763
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
Comments
The same option should be added to normal forms. When "validate" is set to |
Skipping children validation independently doesn't look easy on first sight since only the root form is validated with a |
This PR was merged into the 4.4 branch. Discussion ---------- [Form][SubmitType] Add "validate" option | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | #8763 | License | MIT | Doc PR | TODO The second part of the ticket requires more work but is kind of unrelated. Commits ------- a2bc06d [Form][SubmitType] Add "validate" option
When implementing this option on any form type, we will need to document that its value is only evaluated on root forms (this would be an additional check in the While not cascading validation into nested forms would be possible now with the recent changes made in the |
Thank you for this suggestion. |
Just a quick reminder to make a comment on this. If I don't hear anything I'll close this. |
Hey, I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen! |
The title says it all :)
The text was updated successfully, but these errors were encountered: