Can @conform-to/zod's parse function return all formData errors? #280
-
Prototyping with conform-to and trying to figure out how to parse form data with @conform-to/zod's parse function and get it to return all errors in the form, not just the first error encountered. Is that possible? For example, if I submit a form with two required fields, subject and body, and then parse the formData with @conform-to/zod's parse function as follows, it will only report the subject field as missing, whereas I want it to report that both are missing (so user can see both issues at the same time, as opposed to revealing the missing body field only after the user populates the subject field):
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @setvik, there is currently a bug on zod 3.22 that mess up the validation. Please downgrade to zod 3.21 first. Reference: #271 |
Beta Was this translation helpful? Give feedback.
-
It should be resolved on v0.8.1 |
Beta Was this translation helpful? Give feedback.
Hi @setvik, there is currently a bug on zod 3.22 that mess up the validation. Please downgrade to zod 3.21 first.
Reference: #271