Example:
the ivw_integration module overwrites the field group of the field_ivw and assigns it to the advanced section / group
if (empty($form['advanced'])) {
$form['advanced'] = [
'#type' => 'vertical_tabs',
'#attributes' => ['class' => ['entity-meta']],
'#weight' => 99,
];
}
$form['ivw_integration_settings_override'] = [
'#type' => 'details',
'#title' => t('IVW settings'),
'#open' => FALSE,
'#group' => 'advanced',
'#optional' => TRUE,
];
if the field_ivw is already assigned to a field group in the content types form, the field will not be placed in the advanced group, because it gets overwritten by the field_group module.
The problem occured after upgrading from fieldgroup 1.0.0 to 8.x-3.0-rc1
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | field_group_overwrite-3086818.patch | 614 bytes | shagel |
| #2 | assigned to a field_group after patch working.png .png | 160.02 KB | shagel |
| _assigned-to-a-field_group-inside-form-not-working.png | 41.42 KB | shagel | |
| assigned to a field_group not working.png | 12.24 KB | shagel |
Comments
Comment #2
shagel commentedComment #3
shagel commentedI changed the field_group_from_process to not overwrite the group if it is already set by another module.
Comment #4
shagel commentedComment #5
shagel commentedComment #6
shagel commentedComment #8
nils.destoop commentedThx for the patch. I committed it to dev
Comment #9
shagel commentedComment #10
mariagwyn commentedThis commit: https://git.drupalcode.org/project/field_group/commit/1f05a00 appears to remove the "workflow" vertical tab from the form display groups. While it appears to be weighted correctly in the admin view (/admin/structure/types/manage/NODETYPE/form-display), in the form, the workflow group is not included in the vertical tab set. Instead, it is bumped to the bottom of the form. No amount of resaving the form display changes this.
I applied each commit from where I was (ba42e00) until I found the break. It was clearly on the addition of 1f05a00. I am not skilled enough with code to find why the workflow tab in particular is the one being bumped. All other tabs groups remain the same.
Note that this is a custom node type. 'Workflow' is not assigned to other node types in vertical tabs, so I cannot easily compare.
Comment #11
imclean commentedFollow up: #3095570: after update to 3.0-rc2 field groups are not showing (with field_layout module)