getgrav / grav-plugin-admin

Grav Admin Plugin
http://getgrav.org
MIT License
355 stars 223 forks source link

Enhancement request: Validation error messages #2316

Open bnjmnhssnn opened 1 year ago

bnjmnhssnn commented 1 year ago

Currently, form validation error messages look like this:

Validation error:
Invalid input in "Some Field"

... where "Some Field" is the label for the field defined in the blueprint. This is fine & sufficient when your admin form is short. But in complex admin forms, with tabs, lists, fieldsets, maybe nested or collapsed elements, it is hard to locate the invalid field.

I suggest to display a tree path consisting of element titles, labels or list indices, e.g. Invalid input in "My Tabs > Friends > [12] > Favorite Gelato Flavor"

mdestafadilah commented 1 year ago

this is relate to #2299