Skip to content

ACT-004 Keep the submit button enabled on a form that does not fit on one screen

Level
Guideline, our choice
Verdict
Split (1 of 2)
Status
decided, version 1.1.1

Rule

On a form that does not fit on one screen at the smallest screen size the product supports, without the on-screen keyboard, keep the submit button enabled until the form is sent. A Next or Continue button on a step of a multi-step form counts as the submit button for that step.

Examples

Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.

Do: The button stays on, so a press can find the problem

Create your account

Fields with * must be filled in.

This form is taller than a phone screen. Phone is empty, and Create account is still enabled. Press it: Phone shows "Enter your phone number." and focus moves to it, scrolling it into view, as FRM-011 describes. Type a number and the error goes. Press again to create the account.

Don't: The button is off until every field is filled

Create your account

Fields with * must be filled in.

Still needed: phone number.

Create account stays greyed out while Phone, far above it, is empty. The note says what is missing, but on a phone the person has to scroll back up to find the field. Nothing takes them there, and no message sits at Phone.

Why

On a form that does not fit on one screen, the button and the field that is holding things up are often not visible at the same time. If the button is switched off, the person sees a faint control that does nothing and has to hunt for the reason. If the button stays on, pressing it answers the question at once: the form shows what is missing. No WCAG criterion asks for the button to stay enabled, and none forbids switching it off. WCAG does let an inactive control fall below the contrast levels in WCAG 2.2, 1.4.3 Contrast (Minimum) and 1.4.11 Non-text Contrast, which is one of our reasons below. What the form does when the button is pressed while there are problems is covered by FRM-011. Where a message goes is covered by FRM-002a, and when it appears by FRM-002b.

Our reasons

The judges are split on this, so we chose. We side with keeping the button enabled on forms that do not fit on one screen, for four reasons. Apple, the judge on the other side, writes for its own platforms. The point below about focus on a disabled button is our own observation about the web.

  • The person may not see what is missing. On a form that does not fit on one screen, the empty field can be far above the button. A switched-off button tells them something is wrong but not what or where.
  • A switched-off button gives no feedback. Pressing it does nothing. There is no message, no movement and nothing for a screen reader to announce. It can look like a broken page.
  • It can be hard to see and hard to reach. WCAG lets an inactive control fall below the contrast levels in 1.4.3 Contrast (Minimum) and 1.4.11 Non-text Contrast, and on the web a disabled button usually cannot take focus. That is allowed, but it means the button is the hardest thing on the page to notice at the moment it matters most.
  • It keeps FRM-002b intact. FRM-002b holds back an error on a field the person has not changed until they send the form. Sending is the safety net that reveals every skipped field. A button that cannot be pressed removes that net, and the skipped fields never get their messages.

The other approach, keeping the button off until every required field is filled, has real merit when the whole form fits on screen and the required fields are clear. That is why this guideline leaves short forms out of its scope and does not rule against them.

Do

  • A long sign-up form has First name, Last name, Email, Phone, four address fields and three consent choices, and it scrolls on a phone. Create account at the bottom can be pressed from the moment the form opens, also while Phone is still empty.
  • The person scrolls to the bottom and presses Create account with Phone empty. The press is taken, and the form answers it as FRM-011 describes.
  • Step 2 of 4 in an insurance claim does not fit on a phone screen. Its Continue button stays enabled while Date of incident is empty.
  • Measure the form at the smallest screen size the product supports, with the on-screen keyboard closed. A form that fits on a laptop but scrolls on a phone is a form that does not fit on one screen.
  • After a valid press, what the button does until the reply comes back follows STA-005a and STA-005b, not this guideline.

Don't

  • Grey out Send on a form that does not fit on one screen until every required field is filled, so a person at the bottom of the page cannot tell which field above is still empty.
  • Keep Continue off on a long step of a multi-step form because "it is only a step".
  • Leave the button looking enabled but let a press with problems do nothing, or only shake the button. That is a switched-off button in disguise. FRM-002b says what the press shows, and FRM-011 where focus goes.
  • Judge the form's length on a large screen only, and switch the button off for everyone because it fits there.

Exceptions

  • Short forms. A form that fits on one screen at the smallest screen size the product supports, without the on-screen keyboard, is outside this guideline. A team may switch the button off there.
  • Steps of a multi-step form. A Next or Continue button counts as the submit button for its step. Each step is measured on its own against the short-forms test above.
  • While sending. Once a valid form is sent, the button shows that it is working, as STA-005a says, and does not send again on a second press, as STA-005b says. This guideline covers only the time before sending.
  • If a submit button is switched off. What it must say about why it is off is covered by ACT-005. It also stops Enter in the form's fields, as FRM-015 notes.
  • When the form is sent with problems. Where focus goes is covered by FRM-011, for short forms too.

Verdict

Split (1 of 2). Only the judges decide; the expert witnesses are shown but do not vote. The judges do not settle this one, so it is a guideline: our own choice, with our reasons above. How verdicts work

Stances on ACT-004
SourceRoleStancePage
WCAG 2.2LawSupports1.4.3 Contrast (Minimum)
WCAG 2.2LawSupports1.4.11 Non-text Contrast
Material DesignJudge No position
Apple Human Interface GuidelinesJudge OpposesEntering data
Carbon Design SystemJudge SupportsForms
GOV.UK Design SystemExpert witness SupportsButton
Nielsen Norman GroupExpert witness No position

Each stance links to the page it rests on, read on the date in the source register. This page never repeats what a source says; read the source itself.

History

  • Version 1.1.1, : Notes that a switched-off submit button also stops Enter, pointing to FRM-015.
  • Version 1.1.0, : Narrowed to the enabled button. What happens when a form is sent with problems is now FRM-011.
  • Version 1.0.1, : Examples in English.
  • Version 1.0.0, : First version.

Last checked against the other rules for conflicts on .

More in Actions: 11 rules and 4 guidelines · All rules