-
Version Number7.45.0 Codesandbox/Expo snackhttps://codesandbox.io/s/flamboyant-nash-t4ljj6?file=/src/App.js Steps to reproduce
Expected behaviourImagine a complex multi step form in which the required field is in a previous step and therefore not visible and not focusable. Without the list of errors, it is not possible to determine on which step the validation error occurred. Is the only solution to call What browsers are you seeing the problem on?Chrome Relevant log outputNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can get list error by using For example:
Reference: https://react-hook-form.com/docs/useform/handlesubmit |
Beta Was this translation helpful? Give feedback.
-
Thank you very much. |
Beta Was this translation helpful? Give feedback.
@Ploppy3
You can get list error by using
onError
callback ofhandleSubmit
method.For example:
Reference: https://react-hook-form.com/docs/useform/handlesubmit