Detected form widget name attribute missing submissions: a fix guide

Fields arrive empty after the Detected Form widget connects your form? Audit missing or duplicate name attributes, fix them without breaking labels, then test.

James HollowayWeb Development Lead8 min read

Fields that arrive empty after you connect a form are the most common cause of dropped data in a detected form widget name attribute missing submissions setup. The fix is almost never in the widget. It lives in your markup. Browsers build form data from the name attributes on your fields, so an input with only an id or a placeholder is invisible to the submission. This walkthrough shows what the name attribute does, how to audit your live page in five minutes, and how to fix names without breaking labels or your existing handler.

What the name attribute actually does

An HTML form is a way to configure an HTTP request. When a visitor submits, the browser collects the names and values of the non-file form controls and sends them as name=value pairs joined with ampersands. That is the entire contract: no name, no pair.

MDN's guide to sending and retrieving form data puts it directly: the names and values of the non-file form controls are sent to the server as name=value pairs. With GET, those pairs ride in the URL. With POST, they sit in the request body. Either way, an unnamed control contributes nothing.

Two consequences follow:

  • A field with id="email" but no name will display, accept typing, even fire validation, yet submit nothing.
  • Two fields sharing the same name overwrite one another, so one value arrives and the other vanishes.

That is why the symptom is “empty or partial submissions” rather than “no submission at all.” The form works. Your handler works. The fields are simply not speaking.

Why an empty submission is usually markup, not the widget

The Detected Form widget connects an existing HTML form to WidgetJar. It does not rewrite the internals of your inputs. If a field has no name when you connect the widget, it still has no name after.

Before you touch configuration, separate two failure modes:

  1. Markup problem. The payload arrives without the field at all. This points at a missing name.
  2. Handler problem. The payload contains the field, but the receiving endpoint discards it, misreads it, or errors. This points at your endpoint, not the field.

You can tell them apart in the browser's Network panel. Submit the form, open the Network tab, choose the request, and look at the Request or Payload tab. If the key is absent, it is markup. If the key is present with a value but your endpoint says otherwise, look at the endpoint.

This distinction matters because renaming fields on a live form can break a backend that already expects certain keys. Diagnose first. Change second.

The five-minute audit

Work on the live page, not your editor. View source or open DevTools and inspect the rendered form, because templates and scripts can inject fields you did not write by hand.

For every input, select, and textarea inside the form, record three things:

  • Name present? Blank, whitespace, or missing attributes all count as failures.
  • Name unique? Duplicates mean one value is lost.
  • Name on a disabled control? Disabled controls are never submitted, so a name on them is misleading — it looks correct and sends nothing.

A quick checklist looks like this:

Field Has name? Duplicate? Disabled?
Email yes no no
Phone yes no no
Company no — —
Message yes yes (two textareas) no

Any row with a “no” or a duplicate is a candidate for your empty-submission report. Fix the markup, not the widget.

Common culprits on AI-generated and template forms

Forms produced by page builders, generators, and copy-paste blocks share a small set of recurring defects:

  • Inputs with only id or placeholder. The label still points at the id, so the field looks correct and validates in the browser, but it never submits.
  • Duplicated names from copy-pasted blocks. Two “email” fields, or two “message” textareas pasted from a prior section, share a name and overwrite each other.
  • Hidden fields that never got named. A consent timestamp, source, or tracking field was added but the name was left off, so it silently disappears.
  • Unnamed selects and textareas. These are easy to miss because dropdowns look active and textareas look editable.
  • Names on disabled controls. A field was disabled during a redesign and the name was left in place, giving a false sense of correctness.

If your form is a static HTML file, you may also want the wider context in How to Make an AI-Generated HTML Form Work, which covers the surrounding capture problem.

Fixing names without breaking labels

Labels bind to controls through for on the <label> and id on the input. Never move or delete the id to solve a naming problem. Add or correct the name alongside it:

<label for="email">Email address</label>
<input id="email" name="email" type="email" required autocomplete="email">

The id keeps the label association and hint text wiring intact. The name is what reaches your endpoint. Keep them consistent where possible — id="email" and name="email" — but treat them as two separate jobs.

For the label side, our guide to HTML form labels for lead forms walks through pairing, wording, and hint text so the fix does not strip accessibility while you edit.

After adding the name:

  1. Confirm the for attribute on the label still matches the id.
  2. Confirm any aria-describedby hint or error element still points at a real id.
  3. Confirm required, pattern, and length attributes are still on the control you intend to validate.

Separate what the widget adds from your existing handler

Keep the form's action and method. MDN notes that action defines where data goes and method defines how; changing them to “make the widget work” usually breaks the destination that used to receive your leads.

When you review the form after connecting the Detected Form widget:

  • Consent fields need their own names. A checkbox without a name submits nothing, so your consent record is empty even though the visitor ticked it. Our consent checkbox walkthrough for existing forms covers how consent is recorded.
  • Hidden fields need names. A honeypot or source field without a name is invisible to the endpoint, and worse, a honeypot you cannot read may not work as intended.
  • Do not rename fields a backend already expects. If your endpoint reads customer_email, renaming to email will break it.
  • Avoid double-submitting handlers. If you add or fix a field, do not also add a second submit listener. Our enter key submits form twice guide covers the case where two handlers both fire.

Validation after the fix

Once names are present and unique, confirm the browser still does its job. Native constraint attributes like required, type="email", pattern, minlength, and max depend on the control, not the name, so they should keep firing. MDN's client-side form validation guide explains that invalid controls block submission and display a browser message, which is exactly what you want to prove after edits.

Then check the human side of validation:

  1. Submit with a required field blank and confirm the browser blocks it and focuses the field.
  2. Submit with a wrongly formatted email and confirm the message appears next to the field.
  3. Confirm the error text is announced to assistive technology, not just rendered visually.
  4. Confirm the message is written in plain language that tells the visitor how to fix it.

If native messages are too generic for your brand, our guide to native HTML form validation messages shows how to customise them without breaking behaviour. For wording help, contact form error messages that help visitors fix and resubmit covers inline placement and ARIA links.

Because forms often live inside popups, remember the modal rules from the WAI-ARIA Authoring Practices dialog pattern: focus moves into the dialog on open, Tab and Shift+Tab stay inside, Escape closes it, and focus returns to the trigger. If your form sits in a popup, verify that flow alongside your field audit.

A four-check test pass before launch

Run this pass on the live page, not a staging copy, because the widget loads against your registered domain.

  1. Keyboard-only fill. Use Tab only. Reach every field, type a value, tick consent, and submit without a mouse. If focus escapes the form or skips a field, fix that before shipping.
  2. Inspect the payload. Open Network, submit, and read the Request or Payload tab. Every field you expect should appear as name=value. Anything missing is a markup bug, not a mystery.
  3. Hard reload and repeat. Use a hard refresh to rule out cached scripts, then submit again. Confirm the same fields arrive.
  4. Mobile spot-check. Load the page on a phone-sized viewport, complete the form, and confirm the payload matches the desktop result.

If all four pass, you have proof that each field now reaches the receiving endpoint, and you have evidence to share with whoever owns the backend.

When to leave a field unnamed on purpose

Not every input should submit. A script-only field, a decorative control, or a UI helper that your JavaScript reads directly may deliberately have no name. Leaving it unnamed keeps it out of the payload.

To confirm those fields are excluded, do three things:

  • In the audit table, mark them as “intentionally unnamed” so future editors do not “fix” them by accident.
  • Submit the test form and confirm they do not appear in the payload.
  • Confirm any JavaScript that reads them targets id or a data attribute, not name, so renaming a neighbour does not break the script.

A disabled control with a name also sends nothing. If you want to keep a field in the markup but out of the payload, disabling it is an option — but read the control before you trust it.

Wrapping up

The pattern behind detected form widget name attribute missing submissions is simple: the browser only sends fields with names, and the widget does not rewrite your inputs. Audit the live markup, fix names without touching labels, keep your action and method, and prove the fix in the Network panel with a four-check pass.

Ready to connect a working form? Review the Detected Form widget to see how it links the form you already run to WidgetJar, then run the audit above before you connect it.

  • detected form widget name attribute missing submissions
  • forms
  • detected form
  • validation
  • accessibility

Written by

James Holloway

Web Development Lead at WidgetJar

Keep reading

Get started

Your next lead is one line away.

Pick a design, make it yours and paste a single script tag. Every widget type is included, and you do not need a credit card to start.

<script src="https://cdn.widgetjar.com/wj-assets/embed.js" defer></script>