Form System — Options

Same fields under each candidate labeling/required-marking system. Inputs, heights, and error styling are identical everywhere — only the labeling convention changes.

Option A — Mark required (*)

Label above every field. Red asterisk on required fields.

Work email preferred.

  • • Universal convention, zero ambiguity
  • • Noisy when most fields are required
  • • NN/g: fine, but redundant on required-heavy forms
Option B — Mark optional only ✓ CHOSEN

Label above every field. Required = unmarked. Optional = “(optional)”.

Work email preferred.

  • • Calm forms; matches our required-heavy short forms
  • • Already ~our de-facto convention (“Note (optional)”)
  • • Requires discipline: EVERY optional field gets the suffix
Option C — Placeholder as label

No visible label; placeholder carries the field name.

(Shown for comparison only — labels vanish once the user types.)

  • • Compact, but label disappears on typing
  • • Accessibility + recall failure — experts reject it
  • • Acceptable ONLY for search boxes / single inline notes with aria-label

Label position

Same field, three placements. We picked top-aligned.

Top-aligned ✓ CHOSEN
  • • Fastest completion — one eye fixation per field (Baymard)
  • • Labels can be long; scales to mobile unchanged
  • • Cost: taller forms — fine, ours are short
Left-aligned
  • • Compact vertically; good for dense admin/settings grids
  • • Slower: eyes zigzag label ↔ field
  • • Long labels truncate; breaks on mobile → becomes top anyway
Floating label (Material)
Company name
  • • Compact + label persists after typing
  • • Small animated label = harder to read; helper text placement gets crowded
  • • Custom component to build/maintain — no gain for short forms

Why top-aligned:our forms are short (contacts, campaigns, settings) — completion speed and mobile behavior beat vertical compactness, and it's what shadcn/our primitives assume out of the box.

Validation timing

When the error appears. We picked on blur.

On blur ✓ CHOSEN

Error shows when the user LEAVES the field.

Enter a full email address, e.g. jane@company.com.

  • • Feedback while context is fresh, before submit
  • • Inline validation: −22% errors, +42% faster (A List Apart)
  • • Doesn't yell mid-typing
Live (per keystroke)

Error shows WHILE the user types.

Invalid email. (…user only typed one letter)

  • • Punishes half-typed input — premature errors
  • • Noisy, stressful; NN/g advises against for most fields
  • • OK only for availability checks (username) or password strength
On submit only

Errors appear all at once after Submit.

(looks fine… until submit dumps 4 errors)

  • • Quiet while filling — but feedback arrives too late
  • • User must re-find each field; worst recovery cost
  • • Server-side submit check still exists as the safety net

Why on blur: best error-recovery numbers (−22% errors, +42% faster), no mid-typing noise; submit-time validation stays as backstop.

Shared rules (all options)

Enter a full email address, e.g. jane@company.com.

  • • Input height h-9 (36px) = button height — visual rhythm ✓ (already true)
  • • Labels ABOVE the field (Baymard) ✓ (already true)
  • • Errors: red border + text-destructive message under the field, concrete fix advice (NN/g)
  • • Helper text: text-xs muted, under the field, before any error
  • • Inline validation on blur, not on every keystroke
Show audit of the app before this rule
Audit — what we have today
  • ✓ Input/Select/Textarea primitives consistent: h-9, rounded-md, focus ring
  • ✓ Error color unified: text-destructive (38 uses, 0 strays)
  • ✓ Labels above fields everywhere labels exist
  • ✗ 9 files use native <select> instead of the Select primitive
  • ✗ Placeholder-as-label in queue notes + touch-history notes
  • ✗ “(optional)” used in 5 places but not applied consistently
  • ✗ Label has no built-in required/optional API — done ad hoc
Show research sources
Decision: Option B
  • 1. Our forms are short and required-heavy. NN/g: when most fields are required, marking every one with an asterisk is noise — mark the exceptions (optional) instead.
  • 2. It was already the de-facto habit. “Note (optional)” existed in 5 places; B codifies instead of rewrites.
  • 3. C rejected on evidence. Placeholder-as-label fails recall + accessibility; allowed only for search boxes and inline card notes WITH aria-label.
  • Applied at adoption: 11 native selects → NativeSelect primitive; aria-labels on placeholder-only note fields; selection-control rule (2–5 → SegmentedControl, 6+ → select); single-column layout rule; validate on blur.

Runs locally in the design-system repo (port 7801). Rules of record: form-system.md.