Replies: 1 comment 1 reply
-
The validation schema with global rules doesn't support validating nested fields yet, this is exclusive to const validationSchema = {
"travelers[0].name": "required"
}; This isn't ideal but it would be very hard to implement that at the moment. I realize this isn't mentioned in the docs and will need to update it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a form with multiple repeated fields for a user to input travelers and am unable to add validation to them without using the "Yup" library.
I have messed around with the official Array Fields example that is using "Yup", but wasn't able to convert it to non-yup validation.
I have also tried:
with the HTML of
In this case, the values come back correct, but the validation is never triggered.
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions