How to make zod validation for select box? #3694
Unanswered
cupid20103
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
-
Hello, Everyone!
For now, I am using Zod and React Hook Form for form validation.
But my zod validation is not working well for select-box.
I used these ways for select box validation but not working well! 😐
status: z.string().min(1, { message: "Incorrect." })
strain: z.string().nonempty("Incorrect")
How to solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions