Learning path

Full curriculum

Full curriculum

Unit content

Data-entry forms and validation feedback

A data-entry form should make required information, expected format and correction paths clear before submission becomes a guessing exercise.

Each field needs an understandable label. Placeholder text can provide an example, but it should not replace the persistent identity of the field after the user begins typing.

Defaults reduce effort when they represent a safe and common choice. They are harmful when users are likely to accept a consequential value without noticing it.

Validation should happen at a useful time. Early feedback can catch simple local problems, while rules that depend on several fields or server state may only be known later.

When validation fails, preserve valid input and identify the affected field and reason. “Invalid value” is weaker than explaining the constraint the user can satisfy.

A form is therefore a conversation about structured data: ask only for information the task needs, make the expected representation visible and keep errors local and recoverable.