Hints field possible? #845
Unanswered
subproject22
asked this question in
Q&A
Replies: 1 comment
-
You could try to add a refine() method on your schema and check the value inside. Then, depending on the requirements, you return a message with the corresponding path. You have an example here On the conform side, you could define a field for each requirement, and get its error through the corresponding path you triggered. |
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
-
Someone figured out how to make hint fields like this one?
I guess I can move zod error messages to external variable, but it would be nice if Conform provide some helpers? Or maybe it's already possible? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions