Forms and Inputs
Overview
Forms and inputs covers label placement, input sizing, when validation runs, how required fields are marked, and how related fields are grouped, the mechanics that decide whether filling out a form feels quick or effortful.
Why It Matters
A form is one of the few places a site directly asks something of the visitor. Friction here, unclear labels, validation that interrupts typing, fields that are too small to tap accurately, is friction at the exact moment a visitor is trying to complete a goal.
Core Principles
- Labels stay visible, not just as placeholder text. A label that disappears once typing starts removes context right when it might be needed again.
- Validation timing is a real design decision. Inline, debounced validation catches mistakes early; submit-time validation avoids interrupting someone mid-thought, each has a real tradeoff, not a default answer.
- Target size and distance affect input speed and accuracy. This is Fitts's Law applied to forms: small, oddly placed inputs and buttons take longer to hit accurately and cause more mistaken taps, especially on touch devices.
Interactive Demo
Inline mode: type an email address and the field validates shortly after you stop typing, before you ever click Continue.
Common Mistakes
- Validating on every keystroke with no debounce, so an error flashes before the person has finished typing a valid value.
- Marking required fields with color alone, which fails for anyone who cannot perceive that color difference.
- Grouping unrelated fields together, or splitting one logical group (like a full address) across unrelated sections of a form.
Related Concepts
- Content Design and Microcopy: error message wording is as important as its timing.
- Accessibility and WCAG Basics: accessible forms share the same labeling and keyboard requirements.
- Interaction States and Feedback: form controls need the same state coverage as any other interactive element.
Used In Templates
Demonstrated directly in the Small Business and Local Service Site, Documentation Site, E-commerce Product Page, Event and Conference Site, Nonprofit and Charity Site, Real Estate Listing Site, Multi-step Onboarding Flow, Internal Dashboard and Admin Panel, and FAQ and Help Center Page templates; see docs/PRD.md section 13.2.
Summary
Good form design is a set of deliberate choices: visible labels, a considered validation timing, and generous, well-grouped input sizing. None of these are default browser behavior; every one is a decision the designer has to make on purpose.