Repository navigation
Improve form validation error messages [a11y] [ux] #48616
Closed
brianteeman
announced in
5. Implemented Features
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
When submitting a form with missing required fields or other validation errors, Joomla displays a generic error message:
"The form cannot be submitted as it's missing required data. Please correct the marked fields and try again."
Although the invalid fields are highlighted, there are two significant usability and accessibility problems with this approach.
These issues create unnecessary friction for all users and can be particularly problematic for people using assistive technologies or navigating forms with a keyboard.
Proposed solution
Improve Joomla's form validation feedback so that the error message identifies the fields that need attention.
Ideally, the error summary would list the visible labels of the invalid fields, with each field name providing a clickable link that takes the user directly to the relevant field. Where a field is contained within an inactive tab, the appropriate tab should be opened automatically before the field receives focus.
The existing visual highlighting of invalid fields should be retained.
Benefits
Expected behaviour
When a form cannot be submitted because of validation errors, Joomla should provide a clear summary identifying the affected fields. Where possible, users should be able to activate a field name in the summary to navigate directly to that field, including opening the relevant tab when necessary.
This would improve both the accessibility and usability of form validation across the Joomla administrator.
All reactions