Skip to content

Assign errors for all fields #11820

Answered by nicostombros
D3strukt0r asked this question in Q&A
Discussion options

You must be logged in to vote

Do you mean with something like setError?
https://react-hook-form.com/docs/useform/seterror
You probably want to loop over each of your errors and do setError to map the field to the error

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@D3strukt0r
Comment options

Answer selected by D3strukt0r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants