Language selection

Forms

A form contains a set of form elements, which are UI controls that accepts input.

Form elements are <button>, <input>, <select>, and <textarea>.

Labels and Instructions

Associate form elements to labels by setting either its:

Use consistent label text for all form elements which perform the same function.

Describe form elements purposes clearly with descriptive label text.

Provide clear instructions (with examples, if applicable) identifying form elements requiring:

Supplement colour instructions with symbols or text. (e.g. identifying required fields)

Error messages

When providing error messages:

  • Identify the form(s) element affected.

  • Explain the error and, if applicable, how to fix it for:

Note: For optimal use, it is recommended that error messages appear at the top of the form (when they are server generated).

Session time limits

When a time limit is present, a user must be able to either:

  • Turn off the time limit.

  • Adjust the time limit by extending incrementally up to at least ten times the length of the default setting, ensuring:

    • Prompting the user, on each occurence, to adjust the time limit at least 20 seconds before the time expires.

Turning off or adjusting the time limit is not required when the time limit is either:

  • Real-time (e.g. auctions)

  • Essential to the activity and extending it would invalidate the activity (e.g. exams)

  • 20 hours or more in length

Legal committments and financial transactions

When legal committments or financial transactions occur as a result of a user submission, a user must be able to either:

  • Reverse the submission (or recover the original data)

    • Time limits on the reversal are permitted provided it is stated on the form.
  • Review and correct input before finalizing the submission.

  • Confirm their intent to finalize the submission.

Important: Form elements have additional requirements because they are a type of UI control.

Date modified: