# Forms

> Labels above fields, help where the decision is made, validation that says what to do, and a save that never loses work.

## Rules

- Every field has a visible label. Placeholders show format, not meaning.
- Mark the exception: if most fields are required, mark the optional ones.
- Validate on blur and on submit, not on every keystroke. The message names the problem and the fix: "Enter a gain between 0 and 10."
- Show units in the field (N·m, ms) instead of in the label.
- Save buttons say what they do ("Save limits"). While saving, the button shows progress and keeps its width.
- A failed save keeps every value, says what went wrong and offers Retry. A successful save confirms with a toast.
- Warn before leaving with unsaved changes; offer to save or discard.
