im using 8.3.x versions of drupal and field_group. I can see field_sets on output, but not tabs nor accordions. the fields contained within the groups is being hidden. perhaps i am setting up the display incorrectly. Please see screenshots.

Also: field_groups dont work at all within field_collection. issue raised in fc module also.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

laurencefass created an issue. See original summary.

Znak’s picture

Assigned: Unassigned » Znak
thomas.frobieter’s picture

Same here, It's not working anymore.

andrew.maslov’s picture

I just tried field group tabs and it works for me. It's required to wrap fields with tab group. Otherwise it doesn't work.

On the other hand accordions group has a bug - the dependency lib field_group/core is not set for it and accordions js doesn't work properly. I fixed it in the patch. Fields in the accordion should be wrapped by accordion item group similar to the tabs.

thomas.frobieter’s picture

"It's required to wrap fields with tab group. Otherwise it doesn't work."

We did, It's defenitly not working here. Maybe it's a problem with the layout discovery (core) module or / and the layout fields module.

If you're fast, you can take a quick look here: https://duy0w.ply.st/node/add/page (simplytest)

Installed modules:
- layout discovery
- field layout
- field group

How to reproduce:
1. Install the modules given above
2. Add some custom fields to any content type
3. Create a tab (wrapper) group
4. Create tab groups
5. Move the tab groups into the tab wrapper group and the fields into the tab groups (https://ibb.co/knKYwm)

Result:
https://ibb.co/dAOJwm

Tabs are shown, but the nested fields are located above the tab wrapper.

drclaw’s picture

I do believe this is related to #2878359: Field groups are not compatible with field layout. The patch in comment #11 fixes the issue for me, although I believe there are additional issues if you're putting Paragraphs in fieldgroups.

Edit: Specifically, my comment is meant for @thomas.frobieter's issue above. @dev.maslov may be correct about the OP's issue and the accordion bug.

thomas.frobieter’s picture

Thank's, you're right!

nils.destoop’s picture

Status: Active » Closed (duplicate)