Skip to content
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

Show validation errors from server until next submit? #430

Closed
wwahammy opened this issue Jun 29, 2018 · 2 comments
Closed

Show validation errors from server until next submit? #430

wwahammy opened this issue Jun 29, 2018 · 2 comments
Labels

Comments

@wwahammy
Copy link
Contributor

I have a form where I do client side validation and then, on submission, I could receive back additional errors from the server. Additionally, I have validateOnChange turned on because I want client-side validation to happen immediately and the error state for a field of form to update immediately. The problem I'm having though is that I also want the server errors to be "sticky" and show until the next submit but not cause the field to be invalid (since then the form couldn't be submitted). If I set the form or field as invalid with the server data though using .invalidate(serverError), the error will be immediately removed on the first change. How should this be handled? Is there a best practice here?

@foxhound87
Copy link
Owner

foxhound87 commented Jul 2, 2018

#426
#617

@foxhound87 foxhound87 added the fix label Feb 19, 2019
@foxhound87
Copy link
Owner

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants