Conditional validation schema between null and rules. #3432
Unanswered
Saad-Bashar
asked this question in
General
Replies: 1 comment
-
Just make an arrow function like:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a form where users can submit a draft and at the same time save the form while submitting the draft I want to make all the validation schema to be null or empty so that it does not validate anything and use validation schema when saving the form.
How can I conditionally change the schema in my case?
Beta Was this translation helpful? Give feedback.
All reactions