Troubleshooting

Form Fields Missing From Submissions? Check Name Attributes

Your form submits fine, but one or two fields never show up in the email or dashboard. The browser, not your form backend, decides which fields get sent, and there are six common reasons it skips one.

· The SimpleForm Team

You built the form, clicked submit, and got a success message. Then you opened the email and the phone number is not there. Or the checkbox. Or the second half of a multi-select. Nothing errored, so there is nothing to search for, and you start to suspect your form backend is dropping data.

Most of the time it is not. Form fields missing from submissions are almost always decided in the browser, before the request leaves the page. SimpleForm is a hosted form backend that stores whatever your form actually sends, so the fastest way to fix a missing field is to understand what the browser sends.

Why are form fields missing from submissions?

A browser only includes a control in a submission when it passes a fixed set of rules. The HTML Standard calls the result the form data set, and it is built from controls that have a non-empty name, are not disabled, and (for checkboxes and radio buttons) are checked.

Your server, or your form backend, never gets a chance to ask for the rest. If a field fails one rule, it is simply absent from the request body, and no backend can recover it. That is why the debugging work happens in your markup, not in a dashboard.

The WHATWG HTML Standard describes this in its section on constructing the entry list for a form, and MDN documents the same behaviour for FormData. Both are worth skimming once, because every cause below comes straight from those rules.

Which six causes hide a field from the submission?

Six causes account for nearly every case: no name, a disabled control, an unchecked box or radio, a control outside the form, a file input sent without multipart encoding, and repeated keys flattened into one value. The table lists the symptom, the rule behind it, and the fix.

SymptomWhy it happensFix
Input never appearsThe input has an id but no name. Only name becomes the key.Add name="phone"
Field appears blank in the browser but is absent in the dataThe control has disabled. Disabled controls are never submitted.Use readonly instead, or enable it before submit
Checkbox only sometimes arrivesAn unchecked checkbox sends nothing, not "false".Treat a missing key as unchecked, or add a hidden input with the same name placed before it
Field sits in the page but not in the dataThe control is outside the <form> element and has no form attribute.Move it inside, or add form="contact-form"
File name arrives, file does notThe form is not multipart/form-data, so only the file name is sent.Add enctype="multipart/form-data"
Multi-select keeps only one valueSeveral values share one key and your JavaScript keeps the last.Read them with formData.getAll()

What does a form look like when every field is sent correctly?

A correct form gives every input a name, keeps real values out of disabled controls, and points action at your endpoint. The example below has a deliberate contrast: the first email input is broken, the second is fixed.

<form action="https://simpleform.dev/f/TOKEN" method="POST">
  <!-- Broken: id is not a key. This value is never sent. -->
  <input type="email" id="email">

  <!-- Fixed: name becomes the key in the submission. -->
  <input type="email" id="email" name="email" required>

  <input type="tel" name="phone">
  <input type="checkbox" name="newsletter" value="yes">
  <button type="submit">Send</button>
</form>

The id attribute exists for labels and CSS. It has no effect on what is submitted. This is the single most common cause, especially when markup is copied from a component library that wires up id and for but leaves naming to you.

A checkbox with no value sends the string on when checked. If you read your submissions and see newsletter: on, that is the browser default and not a bug.

How do you find which field the browser dropped?

Log the data set before it leaves the page. That separates a browser problem from a backend problem in under a minute, and it works in any framework because it reads the same entry list the browser builds.

  1. Open the page and the browser console.
  2. Run [...new FormData(document.querySelector('form')).entries()].
  3. Compare the printed keys with the fields you expect to receive.
  4. For each missing key, check for a missing name, a disabled attribute, an unchecked state, or a control outside the form.
  5. Fix the markup, reload, and run the line again until every key is listed.
  6. Submit once and confirm the same keys appear in your dashboard entry.

If a key shows in the console output but not in the stored submission, the problem is further along, and that is when you look at the request itself. Send the same fields with curl and compare the response code against the table in the SimpleForm docs.

Where do JavaScript frameworks make this worse?

Frameworks make it worse because they encourage building the payload by hand. A controlled React input bound to state can look perfect on screen and still be skipped if you read from FormData and the input has no name.

The reverse also happens. If you build a JSON object from component state, a field you forgot to add to the object is silently missing, and the form markup was never the problem. Pick one source of truth and stay with it: either the DOM through FormData, or your own state object.

Two more traps are worth knowing. First, Object.fromEntries(new FormData(form)) keeps only the last value for a repeated key, which flattens a multi-select or a group of checkboxes that share a name. Second, a button with a name is only included when it is the one that triggered the submit, so a field you expected from a second button will not appear on a Enter-key submission.

If your checkbox group needs every selected value, collect them explicitly:

const data = new FormData(form);
const topics = data.getAll('topics'); // ["billing", "api"]

SimpleForm accepts URL-encoded posts, multipart posts and JSON bodies, so any of these approaches reaches the same endpoint. The accepted formats are listed in the SimpleForm documentation, and a quick read of the request examples there will show how each format carries keys and values.

Can a form backend recover a field the browser did not send?

No. A form backend can only store what arrives in the request body, so a field the browser omitted cannot be reconstructed afterwards. What a backend can do is make the gap visible quickly, which is where a dashboard of real submissions helps.

Doing this by hand means writing a server route, logging raw bodies, and redeploying each time you change a field. On a static site you may not have a server to log from at all. With a hosted endpoint, you point the form at the URL, submit once, and read the stored fields next to the markup you just changed, which turns the debug loop into a single refresh. That is the part of the job SimpleForm removes: no route, no logging code, and the same view for email, dashboard and webhook delivery.

Read the endpoint and response-code reference first if you are not sure which format your form is sending.

What if you would rather keep your own backend?

That is a reasonable choice, and the missing-field rules above apply to it too. Owning the server buys you full control of parsing and logging. It also means maintaining spam filtering, email delivery, rate limits and retention for a contact form that probably gets a handful of messages a week.

If the form is the only dynamic thing on your site, a hosted endpoint usually costs less in time. The Free plan covers 100 submissions per month and 3 forms, and the pricing page lists what Pro adds, including 5,000 submissions per month and unlimited forms. If you later need a server for other reasons, nothing stops you from moving the form action.

What should you do next?

Pick the form that is missing data, add a name to every input, run the console line above, and send one test submission. Create a free SimpleForm endpoint, paste the action URL into your form, and submit it once. It takes a few minutes, and the stored entry shows exactly which keys arrived, so you can check each one against your markup.

Frequently asked questions

The field most likely has no name attribute, is disabled, or is an unchecked checkbox or radio. The browser leaves all three out of the request, so the backend never sees them. Add a name to the input, switch disabled to readonly, and check the keys with new FormData(form) in the console before submitting again.

No, the id attribute is ignored when a form is submitted. Only the name attribute becomes the key in the submission. The id exists for label associations, CSS and scripts. If you copy an input that has an id and no name, the value stays on the page and is never sent anywhere.

An unchecked checkbox sends nothing at all, so the key is absent rather than set to false. Treat a missing key as unchecked when you read your submissions. If you need an explicit value, put a hidden input with the same name and a value of no before the checkbox, and the checked box will add a second value.

The form is being sent without multipart encoding. Without enctype="multipart/form-data", the browser submits only the file name as text. Add the enctype attribute to the form tag, or send a FormData object through fetch. File uploads on SimpleForm are available on Pro up to 5 MB per file, and on Agency up to 25 MB.

Use formData.getAll with the shared field name, which returns every selected value as an array. The common shortcut Object.fromEntries(new FormData(form)) keeps only the last value for each repeated key. If you post JSON instead, build the array yourself before sending it so every selection is included.

Ship a working form in five minutes. Point your form's action at a SimpleForm endpoint and submissions land in your inbox and dashboard straight away. Start free or read the docs.

More from the blog