Is that possible to pass additional values from useForm validators to onSubmit? #1345
Answered
by
Balastrong
Choco-milk-for-u
asked this question in
Q&A
-
For example, my validator (onSubmit in useForm validators) validates values with Zod, and in success passes new values with new type in onSubmit and maybe some additional custom value I might need. Thank you for any help. |
Beta Was this translation helpful? Give feedback.
Answered by
Balastrong
Mar 31, 2025
Replies: 1 comment 2 replies
-
Could you please be a bit more specific on the requst? Is onSubmitMeta what you're looking for? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Validators are only returning the error (if any) so there isn't any built in way to flow data from validator to onSubmit. Probably a useRef to store that data might be dirty but does what you need.