Course progress: 0 / 20 lessons

LESSON 15 OF 20

Forms and validation

A form must explain what to enter, expose requirements before failure, and provide a clear recovery path when validation finds a problem.

  • Reading: about 2 minutes
  • Knowledge check: 2-3 minutes
  • Optional practice: 5 exercises, 5-15 minutes each
In this lesson

Test labels, instructions, required state, validation timing, field errors, summaries, and counters as one task.

Prepare users before input

Each field needs a persistent, programmatically associated label. Required state, expected format, and essential constraints should be available before submission.

Validate at a useful time

Feedback that appears too early can interrupt entry; feedback that appears too late can make recovery expensive. Choose timing that supports the task and announce only useful changes.

Connect errors to fields

An error needs understandable text and a programmatic relationship with the invalid control. Focus and navigation should help the user find and correct it.

Summarize without duplicating confusion

For larger forms, a summary can identify the problem set and link to each field. Field-level messages still need to remain available at the point of correction.

What to remember

Accessible validation is a recovery system, not a collection of red borders.

Knowledge check

Answer every question, then use the forward lesson button to record this lesson as complete. The check is not scored and can be repeated.

1. When should format instructions be available?

2. What should happen after a failed multi-field submission?

NEXT STEP

Continue to lesson 16: Dynamic updates

Move on when you are ready. Your knowledge-check answers are not stored.