Setup:
1. Add a required field to a Details field group on a content type.
2. Go to node add for the above content type.
3. Don't fill out the require field and save content entry.

Expected result: Form submission fails and the details element is opened with the field outlined in red.

Actual result: Form submission fails but the details element is closed. You then have to open it up to discover what field failed.

As you can imagine, if you have > 5 collapsible details it provides a poor UX to require the content creator to hunt and find which element contains the error.

Comments

arknoll created an issue. See original summary.

nils.destoop’s picture

Title: UX: Errors submitting form don't open field group. » UX: Detail element not opened when it contains a field with validation errors
Project: Field Group » Drupal core
Version: 8.x-1.x-dev » 8.1.x-dev
Component: User interface » javascript
Category: Bug report » Feature request
Issue summary: View changes

This seems like an issue for core as details element is part of core. Moving to core to see what they think of this.

gngn’s picture

Sorry - got this mixed up with HTML5 validation - https://www.drupal.org/node/1797438

But I still think this is worse than poor UX...

nod_’s picture

Status: Active » Closed (duplicate)
Related issues: +#2493957: Add back errors support to native HTML5 details tag