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.
Do. The button is active. The error says what to fix.
Don't. A disabled button gives no clue about what is wrong.