Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Form showing twice on a page: how to find and fix duplicates

CNV-021Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

A duplicate embed is when the same form shows up two times on one page. Both copies look real. Often they share the same element IDs (the unique names the browser uses to find a field), which can confuse scripts, labels and autofill.

Common causes: the form is added in the page body and in a theme section, popup or sidebar; a form-builder script is loaded twice; a page was duplicated and the embed copied with it; or a tag manager tag injects a form that is already in the HTML.

Why it costs you leads or sales

Visitors see two forms and wonder which one to use, or whether the page is broken. Some fill in the first, scroll, and fill in the second as well, which creates double leads and wastes sales time. Others give up.

Duplicate IDs can also make a button submit the wrong copy, make labels focus the wrong field, or make a validation message appear on a form the visitor is not using. Conversion tracking can fire twice, which inflates your numbers.

How a duplicate embed hurts the journey
  1. Ad clickVisitor lands on the page
  2. Two forms shownSame embed added twice
  3. Confusion or wrong copy submittedDuplicate IDs, double leads or abandonment
  4. Clean lead in CRMOne lead, one conversion

The break happens when the visitor meets two forms and one copy does not work as expected.

Effect of a duplicate form on a pageExample numbers
Effect of a duplicate form on a page (example)One form: 5 % of visitors who submit; Two identical forms: 3.5 % of visitors who submit02453.5One formTwo identical forms% of visitors who submit

Example: illustrative numbers only, showing how a second form can lower the share of visitors who submit.

How to check if your site has it

Look at the live page on desktop and mobile, then count the forms in the code. Check key landing pages first: the ones you send ad traffic to.

Count the forms on a page
  1. Scroll the whole page

    Look in the header, body, sidebar, footer, popups and sticky bars. Resize the window, because some copies only show on mobile or desktop.

  2. Open the browser console

    Press F12 (or right-click, Inspect), open the Console tab and run the snippet below. A count above 1 for the same form is a red flag.

  3. Check for duplicate IDs

    Run the second snippet. Any ID listed appears more than once on the page.

  4. View the source

    Open view-source: for the page and search for the form's name, ID or the builder's script URL to see how many times it is added.

Count forms and find duplicate IDs (paste in the console)javascript
console.log('Forms on page:', document.forms.length);
Array.from(document.forms).forEach((f, i) => console.log(i, f.id || '(no id)', f.action));
const ids = {};
document.querySelectorAll('[id]').forEach(el => { ids[el.id] = (ids[el.id] || 0) + 1; });
console.log('Duplicate IDs:', Object.keys(ids).filter(k => ids[k] > 1));

How to fix it

The fix is always the same: find every place the form is added, decide which one to keep, and remove the rest. How you find them depends on your platform.

Remove the extra embed by platform
  1. Search the page content

    Open the page in the editor and look for the form block or shortcode (for example [contact-form-7 id="123"]). Check there is only one.

  2. Check the theme and widgets

    Go to Appearance > Widgets (or Customize / Site Editor) and look for the same form in a sidebar, header or footer. Also check page template settings and any popup plugin.

  3. Check the page builder

    In Elementor, Divi or similar, open the Navigator or layers view and look for two form widgets, including ones in hidden sections.

  4. Save and clear caches

    Update the page and purge your caching plugin and CDN so the old HTML is not served.

Example: render a form only if its container is emptyjavascript
const mount = document.getElementById('lead-form');
if (mount && mount.children.length === 0) {
  // call your form builder's render function here
  renderMyForm(mount);
}
Before and after

Duplicate embed

  • Two identical forms on the page
  • Duplicate IDs in the HTML
  • Double leads or confused visitors

Single embed

  • One form with a clear place on the page
  • Unique IDs
  • One submission, one lead

How to confirm it's fixed

Confirmation checklist
  • Reload the page in a private window on desktop and mobile
  • The console snippet shows the expected number of forms
  • No duplicate IDs are listed
  • Submit one test lead and confirm exactly one arrives in your inbox and CRM
  • Check that your conversion tag fires once per submission in your tag tool's debug view

How to prevent it happening again

Duplicates usually return when someone adds the form in a second place without knowing it is already there. Reduce the chance with a few habits.

Prevention habits
  • Keep one documented place for each form (page, template or tag manager, not several)
  • Re-run the console count after theme, plugin or page builder updates
  • Review your tag manager for tags that inject forms before adding an embed to a page
  • Be careful when duplicating pages: check copied sections and shared components
  • Add a form-count check to your launch checklist for every new landing page

How FunnelGuard handles this

FunnelGuard does not check for duplicate form embeds yet. Counting matching forms per page is a possible future check, but it is not something the product does today, so do not rely on it for this.

What FunnelGuard does do is run your real lead journey on a schedule with a robot visitor. It fills in and submits the form, checks each step, checks the tracking hits sent to platforms such as GA4, Google Ads and Meta, and checks that the test lead reaches your inbox and CRM. A broken submission or a missing lead can show up that way, but the cause being a second form would be for you to work out.

To watch for duplicates yourself, run the console snippet above on your key landing pages after every change, and keep the form count in your launch checklist. You can also start with the free read-only website audit, or the Free plan (1 site, 2 journeys, daily checks, no card), to monitor the journey itself.

Questions people ask

Why is my form showing twice on my page?

The same form has been embedded in two places, such as a shortcode in the page plus a theme widget, or a pasted embed plus a tag manager script. Search your page, theme, widgets, popups and tag manager for the form and keep only one.

How do I check how many forms are on a page?

Open the browser console (F12) and run document.forms.length. It returns the number of form elements on the page. You can also view the page source and search for the form's ID or script URL.

Why does my WordPress contact form appear twice?

Usually the shortcode or block is in the page content and the same form is also in a widget area, page builder section or template. Check Appearance > Widgets, your page builder's layers and any popup plugin, then clear your cache.

Can a duplicate form embed cause duplicate leads?

Yes. Visitors may fill in both copies, or a script may submit twice. Either way your inbox and CRM can show the same lead more than once. Removing the extra embed and testing one submission fixes it.

Does a duplicate form hurt conversions?

It can. Two identical forms add confusion, and duplicate IDs can make the wrong copy submit or show errors in the wrong place. Your results will vary by page, so test before and after the fix.

How do I find duplicate IDs on a web page?

In the console, loop over all elements with an id and count them, as in the snippet in this guide. Any ID with a count above 1 is duplicated, which often points to an embed added twice.

Does FunnelGuard detect a form that renders twice?

No. It does not check for duplicate form embeds yet. It does run your lead journey on a schedule and check that a test lead arrives, so a broken submission can still show up, but you need to count forms manually.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.