Support Forums

Netlify forms, Data not getting through if some inputs are empty


I’ve been using Netlify forms for a while without any issues, but today I realized forms didn’t go through if some inputs were left empty.

On the client side everything would go as expected, redirecting to the success page after submission. The Netlify dashboard would show “Last submission a few seconds ago” but not the actual data and I wouldn’t get an email.

I started debugging while writing this post and… well now it’s working. Whether I fill only one or all inputs, the data goes though. This is almost worst though; sometimes it works but sometimes it doesn’t? Worst kind of bugs!

I checked netlifystatus.com and it seems like everything has been all good all day. But… yeah, I guess this is a bug report now.

My form looks like this, not that I think it matters much.

<form name="contact" netlify netlify-honeypot="money">
    <label for="name">Name </label>
    <input type="text" name="name" id="name" />
    <label for="email">Email </label>
    <input type="email" name="email" id="email" />
    <label for="message">Message </label>
    <textarea type="textarea" name="message" id="message"></textarea>
  <p style="display: none;">
    <label for="money">Name </label>
    <input type="text" name="money" id="money" />
    <button type="submit">Send</button>

My Netlify site name is https://felixparadis.netlify.app/
www.felixparadis.com in production

Thanks for looking into it if you can!

Well you can add the required attribute to the required fields (or maybe all), so, the form won’t be submitted till those fields are filled. Does that work?

Thought about that, but not all inputs are required. If someone doesn’t want to share their name, that’s fine.

Just tried again this morning and everything is flawless… Worst kind of bug.