A
A
Alexander2021-08-15 12:45:59
React
Alexander, 2021-08-15 12:45:59

Multiple password checks validation Yup and RHF?

Hello, does anyone know how to add multiple password validation checks with react hook form and yup?
6118e0e38ad49225401679.png

How to get all password field errors before they are initialized in order to display in ui and make the text active when there are none, as shown in the screenshot. I will be very grateful for the help, I have been dealing with this for 2 days

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery, 2021-08-15
@axrising

https://codesandbox.io/s/busy-feather-06hmm?file=/...
How best to render errors, I think you'll figure it out yourself. In my case, I have errorsan array of error codes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question