Skip to content
Pandus

WCAG A/AA requirement Priority: Critical

Some form buttons have no name

Some buttons made with <input type="button">, "submit" or "reset" have no readable text, for example a search or newsletter button that shows only an icon or an empty value.

This text was translated automatically and has not been reviewed by a native speaker yet.

Why it matters to your customers

Screen reader and voice control users cannot tell what the button does: search, subscribe, apply a coupon or send the form. They may skip it or press the wrong one, so they cannot find products or finish a step.

Who is affected

  • blind customers
  • screen reader users
  • voice control users

How to fix it

Give every input button a name. The usual way is a meaningful value attribute, such as value="Search" or value="Apply coupon". For icon-style buttons add aria-label, or replace the input with a <button> that contains visible or visually hidden text. Do not leave value empty and do not rely on a background image or the title attribute.

On Shopify

Usually the search or newsletter submit button in the theme, styled as an icon with an empty value, or buttons injected by apps. Add a value or aria-label in the theme's Liquid snippets; ask app developers to fix their own buttons.

On Shoptet (CZ)

Usually in the template's search or newsletter form, or in custom forms. Fix your own code first; for the template, ask Shoptet or a Shoptet partner whether a newer template version labels these buttons.

On PrestaShop

Usually in search, newsletter or voucher modules whose .tpl templates use an icon input with an empty value. Add a value or aria-label in the theme or overridden module templates.

On WooCommerce

Common in search widgets, newsletter forms, coupon fields and form plugins that output <input type="submit" value="">. Set the button text in the widget or plugin settings, or fix the child-theme template; report plugin buttons to the plugin author.

Fix it with AI

Copy this prompt into ChatGPT, Claude or Copilot and add the HTML of the element. Check the answer before you publish it.

You are an experienced web developer and accessibility specialist. Fix this accessibility problem on my website so that it meets WCAG 2.2 level AA.

Website: [https://…]

## Problem: Some form buttons have no name
WCAG 2.2 4.1.2 (A)

Some buttons made with <input type="button">, "submit" or "reset" have no readable text, for example a search or newsletter button that shows only an icon or an empty value.

**How to fix:** Give every input button a name. The usual way is a meaningful value attribute, such as value="Search" or value="Apply coupon". For icon-style buttons add aria-label, or replace the input with a <button> that contains visible or visually hidden text. Do not leave value empty and do not rely on a background image or the title attribute.

## Elements found by the automated check
[Paste the HTML of the element here, or the selector from the Pandus report]

## Requirements
- Change only what is needed; keep the design and how the site works.
- Do not add accessibility overlays or widgets; fix the code or the content.
- Show the corrected code and say in which template or file it goes.
- Explain how to check the fix with the keyboard and a screen reader.

Standards

Standards
StandardClause
WCAG 2.2 4.1.2 (A) Name, Role, Value
WCAG 2.1 4.1.2 (A) Name, Role, Value
WCAG 2.0 4.1.2 (A) Name, Role, Value
EN 301 549 4.1.1 9.4.1.2
EN 301 549 3.2.1 9.4.1.2
Section 508 2017 E205.4
ДСТУ EN 301 549 2022 9.4.1.2

Automated check: axe-core rule input-button-name. dequeuniversity.com, github.com, www.w3.org

WCAG success criterion

Guides and tools

Help articles

All rules we check