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

Separate error for array fields #762

Closed
mmakarin opened this issue Mar 24, 2016 · 4 comments
Closed

Separate error for array fields #762

mmakarin opened this issue Mar 24, 2016 · 4 comments
Labels

Comments

@mmakarin
Copy link

Hello. I have some complex validation on array field details[].periods[] I have to check periods do not overlap and display the error message if they do. I can't determine which period is causing the error, so I have to set this error for the entire array field. I don't want to set _error field because it's not global form error. There is an errors object passed to my form, but it's empty all the time and it's not documented so I can't just grab the error I need and pass it as a prop. Is there any way to do so without creating a faux field just for this error?

@erikras
Copy link
Member

erikras commented Mar 24, 2016

This is currently not supported, but is on the feature request list. #486

@ooflorent
Copy link
Contributor

In closing this issue in favor of #486

@erikras
Copy link
Member

erikras commented May 4, 2016

Good news! Array validation errors in v6.0.0-alpha-7.

@lock
Copy link

lock bot commented Jun 3, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants