# 6.3 Decide when a button is disabled

> Chapter 6, Components. Section: Buttons. Guide: https://www.designguide.dev/md/06-components.md#decide-when-a-button-is-disabled

Default

**Rule:** In a form with 3 or more fields, keep the submit button enabled and show every error after the person submits.

**Why:** A disabled button hides what is missing. An enabled button that shows errors tells what to fix.  **When not:** A short form of 1 or 2 fields, all in view, can keep the button disabled until valid.

- Scroll to the first error and focus it.
- Keep the typed input in place.
- A required consent checkbox can keep the button disabled until checked.

| The button | State | What the person sees |
| --- | --- | --- |
| Submit in a form of 3 or more fields | Enabled | Every error under its field after the press |
| Submit in a form of 1 or 2 fields, all in view | Disabled until the input is valid | Helper text names what is missing |
| Next on a step that needs one answer (see [7.1](https://www.designguide.dev/r/ask-one-question-per-sensitive-screen.md)) | Disabled until the person answers | The question stays in view |
| Confirm on a sheet that needs a pick (see [6.15](https://www.designguide.dev/r/never-preselect-an-irreversible-option.md)) | Disabled until the person picks | Text says "Pick one option to continue." |
| An action with nothing selected (see [8.8](https://www.designguide.dev/r/explain-a-disabled-control-in-visible-text.md)) | Disabled | Visible text says what to select |
| An action that needs the network, while offline (see [8.27](https://www.designguide.dev/r/show-the-connection-state-in-one-fixed-place.md)) | Disabled | A banner says the connection is down |

**Picture:** Do: The button is active. The error says what to fix. Don't: A disabled button gives no clue about what is wrong.

**See:** [7.1 Ask one question per sensitive screen](https://www.designguide.dev/r/ask-one-question-per-sensitive-screen.md), [6.15 Never preselect an irreversible option](https://www.designguide.dev/r/never-preselect-an-irreversible-option.md), [8.8 Explain a disabled control in visible text](https://www.designguide.dev/r/explain-a-disabled-control-in-visible-text.md), [8.27 Show the connection state in one fixed place](https://www.designguide.dev/r/show-the-connection-state-in-one-fixed-place.md)
