Your popup widget form data not captured after embed script install is not a rendering bug. The popup opens, the fields render, the submit button reacts to a click — and the submission never lands where you pointed it. That precise symptom is the whole diagnosis: capture is failing, not display. It is a different fault from a popup that never appears, and it needs a different triage path.
Work through the checkpoints below in order. Confirm each one with evidence, change exactly one thing per test pass, and record what you verified. Most of these breaks turn out to be configuration or markup, not the embed script itself.
Checkpoint 1: rule out configuration before touching form markup
Before opening DevTools, confirm the boring facts in the WidgetJar panel:
- The embed script is present on the live page, not only on a local draft.
- The script is scoped to the registered website domain that actually serves the page.
- The popup widget is saved, configured with a destination, and published.
- You are testing the live URL, not a staging copy on a different hostname.
If any of those is unconfirmed, stop. A published widget on the wrong domain looks identical to a broken handler from the visitor's side. Our accessible popup checklist walks the same render-and-verify sequence for popups generally — a useful warm-up before you descend into submission logic.
Worth knowing: the popup widget is configured in the panel, whereas the Detected Form widget article on this blog deals with connecting a form you already host. If your popup form was hand-built rather than configured, the markup audits below matter more, not less.
Checkpoint 2: separate widget-side capture from destination-side delivery
A submission has two halves: the widget registering it, and the destination receiving it. Failures look the same from outside and need opposite fixes.
- Submit a test entry with an obvious marker value, such as
TEST-triage-01. - Check whether it appears as a captured submission in the WidgetJar panel.
- If it appears, capture works. Your problem is delivery.
- If it never appears, the submission never left the page. Continue below.
This single split saves hours. Chasing your email pipeline when the form element is malformed is wasted effort.
When data does leave the page, it helps to know how browsers transmit it. Per the MDN guide to sending and retrieving form data, a form's action attribute defines where data is sent and method decides whether it rides in the URL or the request body. A popup form whose action or method was overwritten by another script sends data somewhere else silently, with no visible error to the visitor.
Checkpoint 3: audit the popup markup field by field
If the submission never registered, inspect the open popup in DevTools:
- Every field has a
nameattribute. One missing name means one field arrives empty; several missing names mean a useless submission. - Names are unique. Duplicate names overwrite each other during serialization.
- Inputs sit inside the
<form>element. Inputs moved outside it by a wrapper or portal are not part of the payload. - No nested form. A
<form>inside the popup's form is invalid and gets silently dropped or mangled. - Buttons have explicit types. Our popup close button guide covers button semantics inside popups, including why an untyped close button can hijack submission.
A concrete before-and-after, illustrative only:
<!-- Broken: no name, close button submits, nested form -->
<form action="/submit" method="post">
<input type="email" placeholder="Your email">
<button>Close</button>
<form><input type="text" name="note"></form>
</form>
<!-- Fixed: named inputs, explicit button types, no nesting -->
<form action="/submit" method="post">
<input type="email" name="email" required>
<input type="text" name="note">
<button type="submit">Send</button>
<button type="button" aria-label="Close popup">Close</button>
</form>
Checkpoint 4: audit submit handlers for competition
Two handlers on one form behave like two editors on one document. Symptoms include double submissions, one handler cancelling the other with preventDefault(), or a handler throwing before the widget's path runs.
Look for extra addEventListener('submit', ...) calls added by templates, theme scripts, analytics or A/B tools; legacy return false; handlers; and dialog-specific traps. As the MDN reference for the dialog element documents, submitting a form with method="dialog" closes the dialog and saves control state but does not submit the data. That is documented behavior, not a widget bug, and it produces exactly this silent disappearance.
Add a listener that logs event.type early, then submit once. Two rows means you found it.
Checkpoint 5: native validation as a silent blocker
Client-side validation is designed to stop submissions. A required field hidden in the popup, or one rendered off-screen on mobile, blocks the click with an error the visitor never sees. The MDN form validation guide states that when a field is invalid the browser blocks submission and shows an error; only valid input proceeds.
Test it:
- Fill every visible field, submit, note the result.
- In DevTools run
document.querySelector('form').checkValidity(). - Inspect each field's
.validity;valueMissingon something you cannot see is your blocker. - Fix one field, resubmit, compare.
Later additions are frequent culprits: a consent checkbox added last week, a honeypot styled display: none yet still required, or a hidden fieldset in an inactive tab. Our honeypot placement guide explains the rules that keep spam filters from becoming submission blockers.
Checkpoint 6: confirm the dialog subtree is live
If the popup uses <dialog>, verify the form is inside the dialog that is open when submit fires. Watch for a dialog re-created after a trigger, where submit targets a stale subtree, and for open/close cycles that clone the form without moving listeners — the markup looks identical but is inert. Compare form node identity across open cycles, or breakpoint submit and check the event target's ancestry against the open dialog.
A repeatable test pass after each single fix
| Test path | What it proves |
|---|---|
| Empty submit | Validation fires and the visitor sees a message |
| One valid submission | Capture works end-to-end |
| Keyboard-only submit | No hidden keyboard drop-off |
| Repeat submit, same session | Handlers are idempotent, not stacking |
Log each pass: script present, widget published, names unique, one handler, validity clean. A future regression then costs five minutes. If the empty-submit pass shows an unclear message, tighten it first — the contact form error message guide shows how to word inline errors visitors can act on.
Once the marker submission lands in the panel, move to delivery: mail records, Slack config or sheet connectivity, following the contact form email diagnosis walkthrough.
Next step when the plumbing stays stubborn
If config, markup, handlers and validation all check out and submissions still vanish, the fastest path is often to replace the hand-built form with one WidgetJar manages end to end. Set it up in the popup widget, install the embed script once, and let capture happen on the widget side so you are debugging delivery instead of plumbing.