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.
On a form for a content type, I had Title inside a group, then decided to move it out instead. I dragged Title out of (above) the group it was in, and everything appeared as it should. However, when I saved the form, Title was back inside the group.
The work-around is to "Show row weights" and manually change the parent to "- None -". After saving, it stayed out of the group.
Comments
Comment #2
ExTexan CreditAttribution: ExTexan commentedIt seems that it is only title that exhibits this problem. I moved other custom fields out of groups, by dragging, and that worked fine.
Comment #3
Kal_El CreditAttribution: Kal_El commentedSorry - wrong comment
Comment #4
kdechant CreditAttribution: kdechant at Metal Toad commentedI have the same problem on Field Group 3.0-beta1 and Drupal 8.5.0. I can move other fields out of a group, and move TItle from one group to another, but I can't move Title from a group to the top level.
It seems that when you drag title out of a group, its "Parent" dropdown doesn't get cleared by the JS. To reproduce:
- Move Title into a group
- Save
- Drag Title back out of the group, to the top level
- Click "Show row weights"
- Observe that the Parent of Title is still the group it was in before you dragged
My current workaround is this:
- Click "Show row weights"
- Using the select element (not by dragging), change the "Parent" of "Title" to "-none-"
- Save
Alternate workaround, in case that doesn't work:
- Go to your exported config directory (where 'drush cex' puts its files)
- Edit core.entity_form_display.node.{{your_content_type}}.yml
- Look for the "third_party_settings" section
- Remove "title" from the "children" array of any field group that it appears in
- Re-import your config with 'drush cim'
- Go back to the "Edit Form Display" page and Title should now be outside any group
Comment #5
swentel CreditAttribution: swentel as a volunteer commentedYeah, see #3085858: Drag and drop acts weird, sometimes not resetting the parent, or even clearing the region value