Closed rastafrange closed 2 years ago
In fact you have to put
<input type='hidden' name='name' value='values.name' />
<input type='hidden' name='email' value='values.email' />
<input type='hidden' name='commentaire' value='values.commentaire' />
inside the form, I have put it right before my <button class="button button--lg button--primary" type="submit">
And now fields are detected by netlify !
Hey, glad to hear it's working now!
While your solution works as well, I think your textfields were just missing a name attribute which is needed by Formik.
I realize that useFormik
is kinda error-prone in this regards (name is usually injected automatically with <Field>
which is not available with useFormik
). I will have a look at other options for future versions.
Hello, I am trying to use your package however when I build my website with Netlify, it only detects one "field":
And I don't understand what is wrong with my code. I am building a form using Netlify, Formik on a Docusaurus built website.
Is it because I am using Material UI that it is not detecting the fields ?
Because when I try to submit the form, I only receive blank submissions :/
Thanks