Checklist Guide

A Grayed-Out Submit Button and How to Tell the Patient Why

Short answer

A Send button that stays gray until every field is right tells the patient something is wrong but not what. Leave the button active, and when they press it, say which field needs attention. A patient can fix a named problem; they cannot fix a silent one.

By Gio LaRocheUpdated 5 min read
Get my free auditor call (561) 291-2681

The button that will not answer

Picture a patient who has filled in a request form on a phone. The Send button is gray. They tap it and nothing happens. They scroll up, scroll down, look for a mistake, and cannot see one. Maybe the form wants a phone number in another format, or a box farther down is still empty. After a minute they close the page.

The disabled button is meant to prevent bad input. For the patient it behaves like a locked door with no sign explaining why.

What a disabled button actually does

The MDN reference for the button element says the disabled attribute prevents the user from interacting with the button: it cannot be pressed or focused. For a patient using the keyboard or a screen reader, that means the Tab key skips it. They may not even learn that a Send button exists, let alone why it is off.

The W3C Forms Tutorial describes a gentler approach. It recommends marking required fields with a label such as required, adding the required attribute so the browser itself reports missing input, and being forgiving of different input formats. Telephone numbers, it notes, are written with different separators and digit groupings, so a form that can read several notations is easier to use.

ApproachWhat the patient experiences
Button disabled with no messageA dead button and no reason
Button disabled with a line above it naming what is missingBetter, but keyboard users cannot reach the button
Button always active, errors shown after pressing itThe patient is told which field to fix
Required fields marked in the label, plus browser checksThe patient sees the rule before they start

What to do instead

  1. 1Mark required fields in the label itself, with the word required, not only a star or a color.
  2. 2Keep Send active at all times.
  3. 3When the patient presses Send with something missing, stop and show a short message at the top, such as Please add your phone number, and place the cursor in that field.
  4. 4Name each problem field in the message, and repeat the message next to the field, in the manner described in our guide to form error messages without private details.
  5. 5Accept spaces, dashes and brackets in phone numbers rather than rejecting them.

If your designer insists on a disabled button

Some forms really do need it, for example while a file finishes uploading. In that case place a visible line of text right above the button saying what the patient is waiting for, keep it readable by a screen reader, and remove the block the moment the condition is met. For the field labels that make all this work, see visible labels above every field.

Test the result with the steps in our keyboard-only test: fill the form half way, press Send, and see whether the page tells you what to fix. This is practical guidance, not legal advice.

Frequently asked questions

Why do forms disable the button at all?

Usually to stop incomplete forms from being sent. The same goal can be met by checking when Send is pressed and naming what is missing, without leaving the patient stuck.

Can a keyboard user reach a disabled button?

MDN states that a disabled button cannot be pressed or focused, so the Tab key skips it. That is why a message explaining the wait is not enough on its own.

Is color a good enough signal for a disabled state?

No. A gray button can be invisible to a patient with low vision or reading in sunlight. Words that say what is missing are clearer than a shade.

Should I validate while the patient types?

That is a separate choice, with its own trade-offs. Whichever you choose, tell the patient what to fix in words and place the message next to the field.

Does the browser do any of this for free?

Yes. The W3C tutorial notes that the HTML required attribute lets the browser report missing input in its own standard dialog, which respects the visitor's font and color settings.

Sources

Keep reading

Ready to Grow Your Practice?

Primara is now accepting new independent practices nationwide. Most new engagements begin within one week.

Send Us a Message

We respond within one business day.

* Required field

We'll call to confirm your consultation.

No spam, ever. HIPAA-aware agency. We respond within one business day. For urgent inquiries, call (561) 291-2681.

Founder-LedHIPAA-AwareServing Practices Nationwide