Replace LabeledTextField with html input #2984
-
If I replace LabeledTextField with html input and submit the form, the form values are empty and zod throws an error. How do I get zod and the form to see my input? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you look at the You can take a look at the |
Beta Was this translation helpful? Give feedback.
If you look at the
LabeledTextField
component, you can see that we wrap an HTML input with form library utilities. That makes it work with theForm
parent and validation.You can take a look at the
react-final-form
docs to learn more about the library, how it works, and how you can use it: https://final-form.org/docs/react-final-form/getting-started. Or, if you chose a different library during a new project initialization, you can check out the corresponding docs.