Allow altering error links for inline_form_errors

Created on 13 April 2018, almost 7 years ago
Updated 12 March 2023, about 2 years ago

inline_form_errors generates error links at the top of a form, with href set to the IDs of the relevant form items. However, for the use case whereby e.g. a select element may consist of a hidden select tag and styled div or ul, the select tag will have the ID that the error link links to. In this case, the link won't jump to the item.

It would be good to be able to alter the $error_links, to e.g. change the href to a custom form element wrapper ID.

Patch attached.

Feature request
Status

Needs work

Version

10.1

Component
Form 

Last updated 23 minutes ago

Created by

🇨🇦Canada bgilhome Victoria

Live updates comments and jobs are added and updated live.
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