Choose the editing surface
- Use a page for long or multi-step tasks such as drafting a review or listing. Use a dialog for a short edit that belongs to the current record. Use a drawer for mobile filters.
- Use Save draft, Save changes, and Submit for review for distinct actions. Tell people when a draft is private and show what will become public. Allow immediate changes for independent, low-risk controls when people can undo or retry them.
- Group fields that depend on one another in the same form. For example, validate a move-out date against the move-in date as part of the submission.
Validate and show errors
- Use a visible label for every field. Place instructions beside the field and associate them programmatically. Indicate required fields in text.
- After a field has been edited, validate when focus leaves it if the result helps the person continue. Validate the full form on submit and recheck authoritative rules on the server.
- Keep entered values. Show each actionable error beside its field and associate it with the field. For multiple or related errors, move keyboard focus to a summary above the form. Each summary item links to the first field to fix and uses the same wording as the inline error.
- Name the issue and how to fix it. For example, use Enter a move-out date on or after your move-in date. Show errors in text and keep them visible while they apply.
Recover interrupted work
Acceptance checks
- Use a keyboard and a screen reader to submit an invalid form, reach the error summary, follow its links, and correct the fields. Confirm labels and error text are announced.
- Test invalid date order, unsupported attachments, partial upload failure, and a failed save. Confirm entered values and successful uploads survive retry.
- Resume an expired session with the same account and verify draft recovery and focus. Verify a different account cannot access that draft.
- Simulate a conflicting save and an interrupted submission. Confirm that newer work survives and the submission is recorded once.