Replies: 1 comment
-
We are using const formSchema = z.object({
name: z
.string({ required_error: 'name is required' })
.min(1, 'you must enter the name')
.min(8, { message: 'name is too short' })
}) |
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
-
Hey, I am wondering what would be a good way to change the "Required" message when an input is not valid.
Beta Was this translation helpful? Give feedback.
All reactions