Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Placeholder text disappearing in forms: how to fix it

PRF-306Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A placeholder is the hint text shown inside an empty form field, set with the placeholder attribute. When the visitor starts typing, it is removed. If the placeholder is the only thing telling people what the field is for, the field has no lasting name.

This is closely related to WCAG 2.2 guidance on labels and instructions (success criteria 3.3.2 Labels or Instructions and 1.3.1 Info and Relationships). Placeholders also tend to be pale grey, which often fails text contrast. A related issue, inputs with no label at all, is covered separately; this guide focuses on the disappearing hint and what it does to people filling in the form.

Why it costs you leads or sales

People get distracted, switch tabs, or fill in a long form in several goes. When they return to a half-filled field, nothing says what it was. They guess, enter the wrong data, or give up. Errors also get harder to fix: a message saying 'invalid value' is useless if the field name has gone.

People using screen readers, people with memory or attention difficulties, and anyone on a small phone screen are hit hardest. Browser autofill makes it worse, because filled values can leave users unsure which data went where.

How a placeholder-only field loses a lead
  1. Sees empty fieldPlaceholder reads 'Phone'
  2. Starts typingPlaceholder disappears
  3. Gets interruptedReturns, forgets purpose
  4. Enters wrong data or leavesForm not submitted correctly

The visitor understands the field at first, then loses the hint while typing and mistakes the data.

Completion rate by label styleExample numbers
Completion rate by label style (example)Placeholder only: 52 %; Visible label: 61 %023475261Placeholder onlyVisible label%

Example: illustrative numbers showing how a persistent label could change how many people finish a form. Not measured data.

How to check if your site has it

Manual check, 5 minutes
  • Open each lead, checkout and booking form and look for a text label above or beside every field.
  • Click into a field and type one character. Does anything still tell you what the field is?
  • Fill in half the form, look away, then come back. Can you tell what each filled field holds?
  • Check placeholder colour. Pale grey on white often falls below 4.5:1 contrast.
  • Right-click a field, choose Inspect, and look for a <label for="..."> that matches the input id.
  • Test on a phone, where autofill and zoom make missing labels more obvious.
What to look for in the page sourcehtml
<!-- Problem: the placeholder is the only name -->
<input type="email" placeholder="Email address">

<!-- Better: a persistent label -->
<label for="email">Email address</label>
<input type="email" id="email" name="email" placeholder="name@example.com">

How to fix it

Keep the field purpose visible
  1. Add a visible label to every field

    Place it above the input so it stays on screen while typing. Link it with for and id.

  2. Shorten the placeholder to an example

    Use it for format hints such as 'name@example.com', not as the field name.

  3. Fix placeholder contrast

    Make placeholder text at least 4.5:1 against the field background, or remove it.

  4. Avoid floating labels unless the label stays readable

    If you use them, check the shrunk label is large enough and has enough contrast.

  5. Retest on desktop and mobile

    Type into each field and confirm the label stays.

Where to change it
  1. Form plugin label settings

    In most form plugins (Contact Form 7, WPForms, Gravity Forms, Elementor Forms) set the label position to visible, usually in the field or form settings, and make sure the label is not hidden.

  2. Contact Form 7

    Add a <label> around each field in the form template instead of relying on the placeholder attribute.

Readable placeholder and a visible labelcss
label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

input::placeholder {
  color: #595959; /* about 7:1 on white */
  opacity: 1;
}
Placeholder as label vs visible label

Before

  • Field name appears only inside the empty field
  • Hint vanishes on first keystroke
  • Pale grey text hard to read
  • Errors are confusing

After

  • Label sits above the field and stays visible
  • Placeholder shows a short example
  • Text meets 4.5:1 contrast
  • Errors can refer to a field name

How to confirm it's fixed

Confirmation
  • Type into every field and confirm the label stays visible.
  • Click each label and check the cursor moves into the right field.
  • Run a free accessibility scanner such as the browser's built-in Lighthouse audit and check there are no 'form elements do not have associated labels' warnings.
  • Check placeholder contrast with a contrast checker.
  • Submit a test entry and confirm it still arrives.

How to prevent it happening again

Add a rule to your design system: every input needs a visible label, and placeholders are examples only. Include a label check in your launch checklist for new forms, and review form plugin or theme updates, since they can change label styles. Run an accessibility scan whenever you add or redesign a form.

How FunnelGuard handles this

This is outside what FunnelGuard checks. It is a design and accessibility question about how a form looks and reads, which needs a different kind of tool: an accessibility scanner (such as Lighthouse or axe) combined with a manual review of your forms. FunnelGuard is a synthetic monitoring service that runs your real journeys on a schedule and checks that forms submit, tracking fires and test leads arrive. Use it alongside your accessibility checks so that after you change your form labels, you know the form still works end to end.

Questions people ask

Why does the placeholder text disappear when I type?

That is how the HTML placeholder attribute works. Browsers show it only while the field is empty and remove it on the first character. If you need a permanent field name, add a visible <label> instead.

Is it bad to use placeholder text instead of labels?

Yes. Placeholders vanish while typing, often have low contrast, and are not a reliable accessible name. Use a visible label and keep the placeholder for a short example, such as a format hint.

How do I keep a field label visible while typing?

Add a <label for="id"> above the input and give the input the matching id. The label sits outside the field, so it stays on screen. Most form builders have a setting to show labels.

Are floating labels okay for accessibility?

They can be, if the label stays visible after typing, is large enough and has enough contrast. Check that the shrunk label still reads clearly and that the field has a real label element.

Does WCAG allow placeholder text as the only label?

WCAG 2.2 expects fields to have labels or instructions (3.3.2) and a programmatic name (1.3.1, 4.1.2). A placeholder alone is a weak way to meet that, so most accessibility reviewers treat it as a failure. Use a proper label.

What colour should placeholder text be?

Aim for at least 4.5:1 contrast against the field background, as for other text. The default light grey in many browsers and themes is often too pale, so set it explicitly with ::placeholder.

Can FunnelGuard detect placeholder-only fields?

No. This needs an accessibility scanner or a manual review. FunnelGuard checks that your forms submit and that leads and tracking arrive, so it complements those tools.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

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.