-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass values to validationSchema #506
Comments
values
to validationSchema
You can always use
I suggest looking at how Formik itself uses these functions in the source code. |
@latviancoder Yes, it can solve my current problem, I would certainly like to have a second |
Bug, Feature, or Question?
Feature
Description
It would be nice to have access to the values in the YUP scheme in the
validationSchema
. Possible use cases: need to validate based on the current values in the form. For example, one numeric value must not exceed another numeric value.The text was updated successfully, but these errors were encountered: