-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Be able to trigger validation manually #3992
Comments
I'm pretty sure this was asked before, but I couldn't find the original issue yet. |
@gustavohenke - Here's the one, but it's a bit different -- they want to use it inside the form, where Also, tricks with triggering fake submit, blurring/changing the fields aren't convincing me, those are just hacks. If there's Thanks! :-) |
Hm, perhaps what I remember people asking was some way to set the errors, which is... essentially the same as running the validation. So yeah, I think having this consistency among the action creators would be cool 👍 |
@gustavohenke perhaps #3267. |
I wanted to mention two things that might help with your original question ( and also for anyone who's reading this at a later point).
|
+1 |
I wanna do validation when form appeared like edit page. |
To get the syncErrors on reset() you can use this configuration:
|
Are you submitting a bug report or a feature request?
Feature Request
What is the current behavior?
I want to enable/disable some button (outside the form), depending on whether my form is valid or not (sync validation). The thing is, that after I reset the form (using
reset
action creator) it identifies as valid (usingisValid
selector) and there's no possibility to run validation on this form manually.What is the expected behavior?
Be able to run validation (and choose sync or async?) on a form manually using action creator.
What's your environment?
Redux Form: 7.2.0
Thanks!
The text was updated successfully, but these errors were encountered: