How to set error message for sibling checkboxes based on selection of an individual checkbox in Formik nested form using Yup? #3564
Unanswered
meenakshi-lumen
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a nested Formik form which has checkbox in every new set of form fields added. I am trying to add validation in Yup to achieve:
Right now, it throws error for other checkboxes if a particular checkbox is selected. Anyone who can guide me on how to prevent this would be really helpful.
Link to the code I have tried so far: https://codesandbox.io/s/formik-nested-form-mx15kt
Beta Was this translation helpful? Give feedback.
All reactions