- πͺπΈSpain sergioitdo
+1 on these, we experience same problem twice. thank sidgrafix for share the details.
- πΊπΈUnited States erutan
I can reproduce this on Drupal 9.5.9 - using an accordion I have two accordion items that are in the disabled area at the bottom, but the edit page renders properly / as intended as of what it looked like before I saved the manage form display.
- πΊπΈUnited States sidgrafix
@erutan thank you.. patch for 9.5.9 works! I didn't know there was a core issue regarding this, it didn't show up in my searches before initially opening this ticket.
At first I didn't think it helped!
Here are some things to note, after adding patch rebuild cache and when you first visit a content types form-display (it will still look like it is broken) and why I initially thought it didn't do anything.
Click show row weights upper right corner of form-display, if they aren't already displayed (so you can verify the next steps by weight order, making sure they end up in the right place).
Then in the disabled section for each tab, accordion item and/or nested group change each "Region" (dropdown-select)
from 'Disabled' to 'Content'. If everything is working correctly as you change each from Disabled ajax will run and update the form putting that field_group/item where is belongs - to verify check the weights. When done make sure to hit "Save" and the form-display will reload and everything will be exactly as it should! Moving forward any changes made (moving or adding field groups, tabs or accordion items) should work as expected.@sergioitdo -> try the patch erutan suggested. Post back if it works, no point leaving this open if a core issue can resolve it! If it works for you, then this can probably be tagged with that core issue and closed as a duplicate.
- πΊπΈUnited States erutan
Glad it worked for you too! I found the core patch in another related issue here https://www.drupal.org/project/field_group/issues/3085858 π Drag and drop acts weird, sometimes not resetting the parent, or even clearing the region value Needs review and figured it might fix this. :)
This probably falls under the general umbrella of "Drag and drop acts weird" especially since the same core patch fixes both.
I cleared caches, then just moved accordion items to their correct location, saved, and then they stayed in place iirc.
- π΅π°Pakistan Ahmed.Raza
I am facing the exact same error unfortunately links to patches in #4 didn't work for me. Drupal 10.2.6
- πΊπΈUnited States sidgrafix
@ahmed.raza try this patch
https://www.drupal.org/files/issues/2023-12-26/3089151-51.patch
(it's the one I've been using) it's a core patch and solves most if not all field group display issues especially when field groups are nested.- Here is the main issue thread for that patch:
https://www.drupal.org/project/drupal/issues/3089151 π TableDrag JS :first-of-type issues Needs workHoping someday it gets merged into core as it not only affects field groups, but pretty much anything using table drag to adjust layout.