Inline form error links should bring form element title, form element and the error in view.

Created on 22 March 2015, over 10 years ago
Updated 24 July 2025, 5 days ago

Follow-up to #1493324: Inline form errors for accessibility and UX β†’

Currently postponed on #1870006-10: HTML5 validation with table sticky header is misaligned over the toolbar β†’ .

Problem

The inline error massage handling is great, but it's a nuisance to be snapped to the form (input) element related to the error instead of the elements title (a user should be able to see what the field is about).

Related: in case the menu toolbar is enabled the form element is often not visible at all (below the top bar). #1440628: [Meta] javascript toolbar/tableheader with url fragment mess β†’

Proposed Resolution



Add an ID to the form element labels and point the links to those ID's instead of the ID of the input element.
This will allow the user to see the form label and any instructions that are pertinent to resolving said error.

Remaining tasks

  • (Not relevant anymore)
  • (Not valid HTML5)
  • Research if the focus goes to the target input element when we jump to labels.
  • Add ID's to field labels
  • Point inline error links to the labels when present, and the input element otherwise

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component

inline_form_errors.module

Created by

πŸ‡ΊπŸ‡ΈUnited States bladwin

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • mobile

    Issue related to Drupal on mobile devices.

  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

  • Needs manual testing

    The change/bugfix cannot be fully demonstrated by automated testing, and thus requires manual testing in a variety of environments.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024