Home
Support Forums

My form submission is only getting name, email, subject and message

<form id="form" name="contact" method="POST" netlify-honeypot="bot-field" data-netlify="true" class="ms-2">
                        <input type="hidden" name="form-name" value="contact">
                        <p class="hidden">
                            <label>Don’t fill this out if you’re human: <input name="bot-field" /></label>
                        </p>
                        <p class="coding-font">&lt;form&gt;</p>
                        <div class="row my-3">
                            <div class="col">
                                <div class="form-neon">
                                    <input type="text" class="form-control" placeholder="Nombre" aria-label="Nombre" name="name" required>
                                </div>                        
                            </div>
                            <div class="col">
                                <div class="form-neon">
                                    <input type="email" class="form-control" placeholder="Email" name="email" aria-label="Email" required>
                                </div>                        
                            </div>                            
                        </div>
                        <div class="mb-3">
                            <div class="form-neon">
                                <input type="text" class="form-control" name="subject" placeholder="Asunto" aria-label="Asunto" required>
                            </div>                           
                        </div>
                        <div class="mb-3">
                            <div class="form-neon">
                                <textarea id="text-area" class="form-control"
                                name="message" placeholder="Mensaje" required></textarea>
                            </div>                            
                        </div>
                        <div class="my-4 d-flex justify-content-end">
                            <button class="btn btn-neon btn-neon-green px-5" type="submit">Enviar</button>
                        </div>
                        <p class="coding-font">&lt;/form&gt;</p>
                    </form>

There is my form for this website: https://liscanojac.netlify.app/

Although I am only getting this
image

I hope someone could help me to solve ehis issue.

PLEASE help us help you by writing a good post!

  • we need to know your netlify site name. Example: gifted-antelope-58b104.netlify.app
  • DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
  • Build problems? Link or paste the FULL build log & build settings screenshot

The better the post - the faster the answer.

Hi @liscanojac

I was able to copy your form and receive a submission on it.

Note that as you aren’t rendering your form via JavaScript, you don’t add this field, Netlify will automatically do that (it also removes netlify-honeypot="bot-field" data-netlify="true" as per docs.)

I see you aren’t using an JavaScript to handle form submission, so I doubt the scripts you have are playing a part. However, a test, copy your form to a new HTML page (just the form will do, but change name="contact" to something else like name="form_test") with no scripts and see if a) Netlify picks it up properly, and b) if you receive submissions properly. If you do, then it is possibly the JavaScript you have is impacting it.

1 Like

Thanks for your answer mate. Now I’m adding the JS according to docs. Although, I have a question, what is that element with ID ‘pizzaOrder’? I dont get that part.

image

You don’t need to use the JavaScript form, HTML version should work well given you have a simple HTML site (ie. not rendered in JavaScript like React, Vue, etc.) Although submitting via AJAX so the user stays on the page rather than getting redirected is often a nicer experience.

The pizzaOrder is the name of the form.

1 Like

Cheers mate. You’re a hero without cape. Or are you wearing the cape today? Anyway thanks again

1 Like

No cape today @liscanojac :rofl:

1 Like