cds-snc / platform-forms-client

NextJS application that serves the public-facing website for Forms
https://forms-staging.cdssandbox.xyz/
MIT License
34 stars 13 forks source link

OKR 1.6: Error messaging and pages #401

Open srtalbot opened 3 years ago

srtalbot commented 3 years ago

OKR 1.6: Exceed WCAG criteria 3.3.3 “Error Suggestion” by providing more specific information to end-users on how to fix their mistake for common short answer questions.

Types of elements:

  1. We know how to set an effective error message (E.x.: email, we have a specific component and can set a valid format easily)
  2. We have some information on how to set an effective error message (e.g.: date - we have some specific options in the data component that can tell us more information on what is an expected valid input)
  3. We have no information about how to set an effective error message

Context:

Goals:

  1. Review types 1 and 2 to see what work we can do to improve the error messaging for clients now
  2. Ideation on how we support clients in creating more custom validation, where and when it will/won't apply.
  3. Identify an interative approach to improving error messaging
  4. Designs that are ready for dev implementation to be prioritized.
anikbrazeau commented 1 week ago

Past context:

Screenshot 2024-10-15 at 10.16.19 AM.png

Current context

Follow Design System specifications and advice

anikbrazeau commented 5 days ago

Outlining error content here: https://docs.google.com/spreadsheets/d/1qx6K-PkburkQ2anDbRAhLpgWIfbYF8aWV6N34NrFUp8/edit?gid=0#gid=0

anikbrazeau commented 4 days ago

Note: some issues for multiple errors repeating can be mitigated by using pagination and one question per page to avoid summaries with many non-specific error messages.

Screenshot 2024-10-15 at 10.15.58 AM.png