How to handle validations messages order #3298
Unanswered
SimonChaumet
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
-
In my project I'm using yup validation schema but with formik the response is transformed in an object "ordered" by field name.
The problem is that I want a specific order for my validations messages.
E.g :
In my reset password form I have a field named password and a field named passwordConfirmation sent to a backend, the passwordConfirmation message is shown before the password message which is really confusing for the customer.
After looking at the source code I can't determine where I should modify the code to get the correct order to create a fork of Formik, does anyone have this problem and knows how to handle it ?
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions