Validate all fields on a field update #7356
Ansalibrahim
started this conversation in
RFC
Replies: 2 comments 3 replies
-
Here is a minimalistic sample if you want to check https://codesandbox.io/s/react-hook-form-usefieldarray-forked-uwuu9?file=/src/index.js In the example, the append will add a new row. change the first name in the second row to Bill. while typing the field will be validated and shows the error "Repeated". I need to show the error on every row which is repeated. In this case, I need to show the error "Repeated" in both rows. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
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 implement a form with a field array, the array does have multiple fields. I need to check whether a field value repeats. Unfortunately, only current focus field validation is triggered when the data is updated. I have to show the error like "value is repeated" in all the fields.
Is there a way to do this with react-hook-form?
Beta Was this translation helpful? Give feedback.
All reactions