cds-snc / cds-snc/platform-forms-client

Error message in error summary is not specific for questions in a repeating set (shows 'empty' message when 'invalid')

Open
#5,878 1 comment 0 reactions 0 assignees View on GitHub
:vertical_traffic_light: Moderate a11y app bug end users
Dominant language
TypeScript
Stars
46
Forks
16
Avg merge
1d 9h
Merged PRs (30d)
91

Description

## Description

- To meet WCAG 2.1 A criteria, errors must be specific, identifiable and understandable.
- We addressed this in the past by adding a truncated portion of the question/field label.
- However this does not appear to carry over to repeating sets

Screenshot 2025-07-14 at 3.05.27 PM.png

## Steps to reproduce
1. Go to a form with required questions in repeating sets such as `cmd3h2gvz000eyj01pm3pskij`
2. Don't fill anything out when testing in draft mode and hit submit
3. See error summary with different formats for error messages:

Screenshot 2025-07-14 at 3.06.05 PM.png

## Details
- **Browser**: Chrome
- **Operating system**: Mac
- **Environment**: Staging
- **Language**: English and French
- **Viewport**: Desktop

## Expected behaviour

"Enter an answer for: {{Question label}}
_rather than_ the generic: "Complete the required field to continue." which could be listed a bunch of times and does not give a good enough indication of which question it relates to.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.