Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If an accordion item has a child with an error, the accordion item should be open when the form reloads and displays errors. Otherwise, the user doesn't know which accordion item holds the error and might have to open other accordion items to find the one holding the error.
Comment | File | Size | Author |
---|---|---|---|
#2 | field_group-accordion-item-open-on-error-2923831-2.patch | 640 bytes | oknate |
Comments
Comment #2
oknateHere's a patch that works for me locally.
Now if I trigger an error on a child element, the accordion item is open when the form reloads.
Comment #3
oknateComment #4
Amerie CreditAttribution: Amerie commentedThis works for me. Thanks!
Comment #5
Kris77 CreditAttribution: Kris77 commented#2 work for me too with 8.x-3.0-beta1.
Thanks @oknate
Comment #7
nils.destoop CreditAttribution: nils.destoop as a volunteer and at Wunder commentedThx for the patch. This is committed to dev
Comment #9
Berliner-dupe CreditAttribution: Berliner-dupe commentedImplements this feature also for the 7-version, plz.