On this page
What this issue is
When a visitor makes a mistake in a form, the page shows a message such as "Enter a valid email". Sighted people see it beside the field. But in the HTML, the message is often just a nearby <div> or <span> with no link to the input.
aria-describedby is an attribute that points an input at another element by its id. A screen reader then reads that element's text after the field's label. Without it, the user tabs into the field and hears only "Email, edit text". The error is somewhere else on the page.
This relates to WCAG 2.2 success criteria 3.3.1 (Error Identification) and 1.3.1 (Info and Relationships). It is about the connection in code. Whether the error is spoken the moment it appears is a separate issue (see aria-live).
Why it costs you leads or sales
People using screen readers, and some voice and switch users, cannot tell which field failed or why. They may retry the same value, give up, or leave. Each of those is a lost enquiry or order. The business impact is usually low in volume terms, but those visitors are completely blocked, and accessibility complaints are a legal and reputational risk in some markets.
- Fills in formTypes an invalid email
- SubmitsValidation fails, message appears
- Error not linkedField read without its error
- Corrects fieldUser does not know what is wrong
- Lead sentForm is abandoned
The error is shown on screen but not tied to the field, so a screen reader user never learns what to fix.
How to check if your site has it
Trigger an error
Submit your form empty, or with a bad email or phone number, so the error messages appear.
Inspect the input
Right-click the field, choose Inspect, and look for aria-describedby on the input. Check that the id it names exists on the error element.
Check aria-invalid
A field that failed validation should have aria-invalid="true".
Listen with a screen reader
Tab into the failed field using NVDA (Windows, free), VoiceOver (Mac/iOS) or TalkBack (Android). You should hear the label, then the error text.
Run an accessibility scanner
Browser tools such as axe DevTools or Lighthouse can flag broken aria references, though they cannot judge whether your error text is useful.
How to fix it
The pattern is the same everywhere: the error element gets a unique id, the input points to it, and aria-invalid is set only while the field is wrong.
Not linked
- Error is a loose span after the input
- Input has no aria-describedby
- No aria-invalid on the field
- Screen reader says only 'Email, edit text'
Linked
- Error has a unique id
- Input has aria-describedby pointing to it
- aria-invalid="true" while invalid
- Screen reader says 'Email, invalid entry, Enter a valid email address'
<label for="email">Email</label>
<input type="email" id="email" name="email"
aria-invalid="true"
aria-describedby="email-error">
<p id="email-error">Enter an email address like name@example.com</p>If the field also has hint text, list both ids separated by a space: aria-describedby="email-hint email-error".
function showError(input, message) {
const id = input.id + '-error';
let err = document.getElementById(id);
if (!err) {
err = document.createElement('p');
err.id = id;
input.insertAdjacentElement('afterend', err);
}
err.textContent = message;
input.setAttribute('aria-invalid', 'true');
input.setAttribute('aria-describedby', id);
}
function clearError(input) {
const err = document.getElementById(input.id + '-error');
if (err) err.remove();
input.removeAttribute('aria-invalid');
input.removeAttribute('aria-describedby');
}Check your form plugin
Many form plugins (for example Gravity Forms, WPForms, Contact Form 7) add aria-describedby to errors. Update the plugin and test. Look for an accessibility or 'enable ARIA' option in its settings.
Check the theme
If the theme restyles or replaces validation messages, override its template or script so the error keeps its id and the input keeps aria-describedby.
Edit the form snippet
In Online Store > Themes > Edit code, open the form section (for example the contact form or customer login/register templates). Many themes already link errors; if yours does not, add id and aria-describedby as shown above.
Use form.errors carefully
Where the theme prints form.errors in one block, add an id to that block and reference it from the relevant inputs, or output one message per field.
Native form messages
Webflow's built-in error message is a block shown after submit. Give it a custom attribute id and add aria-describedby on the field using Element settings > Custom attributes.
Test after publishing
Webflow shows these messages only when the form is submitted, so test on the published site.
Use built-in forms where possible
Wix's own form elements handle some accessibility attributes automatically. Test with a screen reader first.
Custom code
If you use Velo or custom HTML, add the ids and aria attributes in your validation code.
Test the built-in form block
Check the output with a screen reader. If errors are not linked, you can add a Code Injection script that sets aria-describedby on the failing inputs, but test it carefully after each template update.
Avoid as a first choice
A Custom HTML tag can patch attributes after the page loads, but it is fragile. Prefer fixing the form markup or plugin. Use GTM only as a stopgap and remove it once the source is fixed.
Check the form output
Test your GoHighLevel form with a screen reader. If errors are not linked, you can add custom code to the page that sets aria-describedby on the inputs, or consider an embedded form you control.
Update your validation function
Create or reuse an error element with a stable id, set aria-describedby and aria-invalid on the input, and remove them when the value becomes valid.
Keep the id unique
Duplicate ids break the link. Generate ids from the field name or id.
How to confirm it's fixed
- Each invalid field has aria-describedby pointing to an id that exists once on the page
- aria-invalid="true" appears only on fields that are wrong
- A screen reader reads the label, then the error text, when you tab into a failed field
- The link and aria-invalid are removed once the value is corrected
- Hint text and error text are both read when both ids are listed
- A scanner such as axe reports no broken aria-describedby references
How to prevent it happening again
Put the pattern in one reusable form component or template so every new form gets it. Add a screen reader pass and an automated accessibility scan to your release checklist, and re-test after form plugin, theme or page builder updates, which often rewrite error markup.
How FunnelGuard handles this
This issue is outside what FunnelGuard checks. FunnelGuard is a synthetic monitoring service: a robot visitor runs your real journeys on a schedule and checks steps, tracking hits and whether test leads arrive. It does not inspect ARIA attributes or how a screen reader reads your form.
The kind of tool that fits is an accessibility testing tool: an automated scanner such as axe DevTools or Lighthouse for quick checks, plus manual testing with a screen reader like NVDA or VoiceOver. FunnelGuard can still help with a related problem: if a form stops submitting or test leads stop arriving, its scheduled journey check will show that.
Questions people ask
What is aria-describedby on a form field?
aria-describedby is an HTML attribute that points an element to another element's id, so assistive technology reads that element's text as extra description. On a form input it is commonly used to attach hint or error text, so a screen reader announces it after the field's label.
Why does my screen reader not read the form error message?
Most often the error is a separate element near the input with no programmatic link to it. Give the message an id, add aria-describedby with that id to the input, and set aria-invalid="true" so the error is read when the user reaches the field.
Should I use aria-describedby or aria-errormessage for errors?
aria-describedby has the most reliable support across browsers and screen readers, so it is the safer choice today. aria-errormessage is designed for errors and works with aria-invalid, but support has been less consistent, so test before relying on it.
Do I need aria-invalid as well?
Yes, it is good practice. aria-invalid="true" tells assistive technology the current value is not accepted, and many screen readers announce 'invalid entry'. Remove it when the field becomes valid.
Can I put the error text inside the label instead?
You can, but it makes the label change and be read every time, which is noisy. A separate error element linked with aria-describedby keeps the label stable and lets you add or remove the message cleanly.
Does this affect SEO or conversions?
It does not affect search rankings directly. It affects conversions for visitors who use screen readers or other assistive tools, because they cannot tell what to correct and may abandon the form.
How do I test linked form errors without special software?
Inspect the input in your browser's developer tools and confirm aria-describedby matches an existing error element id. For a real check, use a free screen reader such as NVDA on Windows or VoiceOver on Mac and tab through a failing form.
Can FunnelGuard check if my form errors are linked to fields?
No. FunnelGuard monitors whether your funnel steps, tracking and test leads work, not ARIA markup. Use an accessibility scanner like axe or Lighthouse together with manual screen reader testing for this.
Related issues
- PRF-308Form errors not announced to screen readers (no aria-live)Fix guide
- PRF-307Form errors shown only in red with no textFix guide
- PRF-305Form inputs without labels (placeholder only)Fix guide
- PRF-313Form cannot be completed with keyboard onlyFix guide
- PRF-310Required fields indicated by colour onlyFix guide
- PRF-300Text colour contrast below 4.5:1Fix guide