We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I have a number of children elements nested as items, how do I write a validation that at least one child exists?
For example, if my fields look like the following:
export const fields = [ 'date', 'items[].itemType', 'items[].size', 'items[].flightsOfStairs', 'place', 'startTime' ];
How do I validate that there is at least one item?
The text was updated successfully, but these errors were encountered:
There is not currently a way to attach an error to an array, since arrays aren't really fields. #486 #762
The current least-worst solution is to use the form-wide _error key.
_error
Sorry, something went wrong.
Got it. I can make that work for now.
Good news! Array validation errors in v6.0.0-alpha-7.
v6.0.0-alpha-7
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.
No branches or pull requests
If I have a number of children elements nested as items, how do I write a validation that at least one child exists?
For example, if my fields look like the following:
How do I validate that there is at least one item?
The text was updated successfully, but these errors were encountered: