Media Library Edit Form Doesn't Show Errors on the Form

Created on 6 August 2024, 4 months ago

I have some custom validation handlers for the media library form. I am using this module as well. The validation handlers still work, but the form when loaded in the modal window doesn't actually show errors in the form. The messages are printed at the top, however, if you are using Inline form Errors, the message at the top of the screen isn't always descriptive enough. If you have added many fields to the form, the user is left to kind of figure out the issues on their own.

This what I see at the top of the form when I have an error regardless of whether its the standard media edit form, or the modal version of the form loaded via this module.

However, the error on the widget of the form only displays when I am using the standard form, which should look like this.

Other ajax forms seem to have this line of code when errors are detected

$response->addCommand(new ReplaceCommand('form', $form));

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bdawg8569

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

Comments & Activities

Production build 0.71.5 2024