Errors are not linking to error messages in radios and checkboxes

Created on 10 February 2025, 3 months ago

Problem/Motivation

1. When client-side validation is disabled in webforms (which is required for accessible web forms)
2. And we submit the form when radios and checkboxes are required
3. Then the error at the top of the screen does not link to the error message in checkboxes or radios

Steps to reproduce

Proposed resolution

1. Update field.twig to allow messages to have attributes as well as message content
2. Update form element preprocessing to provide error message as well as attribute

🐛 Bug report
Status

Active

Version

1.9

Component

Code

Created by

🇦🇺Australia RichardGaunt Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024