Could you link us to your form in production so we can see it in action, @evvvritt ? Hard to tell what is happening without more context - such as the meaning of “don’t go through” - HTTP 404? missing submissions? Empty submissions?
Knowing where to find your form would help us out a lot. If you don’t want to post the URL here, you could say “netlify site ID # X and the form is at /path on deploy ID Y”. You can find the site ID on the general settings page, and the deploy ID will be in the URL from the logs for the deploy you were testing on (last component: Netlify App).
Hello, I´m deploying my first site through Netlify these days. I´m currently having a html form that gets some additional select/option elements from the DOM depending on what they have searched on. My form submits to Netlify, but I cant get the additional JS elements to submit its value and I dont get where I should add the <input type="hidden" name="form-name" value="contact" /> as stated above. What am I missing?
Hi, @NikolaiLadeklar, when a site is deployed with our service there is post processing which occurs. During this post processing any HTML <form> tags are processed and a backend handler is created to receive the form submisstions.
The handlers will only access fields defined in the HTML it processed. All other fields are silently dropped.
The solution for this is to have the HTML version of the form contain all possible fields. If this is done, the handler will be able to accept all field. Missing fields are allow but undefined fields are ignored.
If there are other questions about this, please let us know.
I have a stateful react form with a static html hidden form, and all my fields are submitting successful except for one, which uses props to pass data into the value. Please check it out at this thread => Pass a hidden input value with stateful React form