fieldgroup does not work with inline entity form

Created on 8 July 2020, almost 5 years ago
Updated 10 June 2024, 12 months ago

Hello,

I have a content type with a paragraph field, the paragraph field has a field with inline entity form inside. The problem is that the groups are printed empty and the fields are outside the groups.

I have verified and it is because when the hook_inline_entity_form_entity_form_alter() is executed, at this moment the groups in previous hooks had already been processed and the form remains with the markup $entity_form['#field_group_form_process'] = TRUE, this prevents the groups corresponding to the fields are assigned and the fields are printed outside each group when we are using the inline entity form.

This patch worked for me with the following versions.
"drupal/core": "8.8.8"
"drupal/inline_entity_form": 1.0.0-rc6
"field_group": 3.1.0

I do not know if it is the correct solution. I hope it can work for you.

🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

🇨🇴Colombia yovanny.gomez.oyola

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia jannakha Brisbane!

    patch applies, but doesn't work on D10

    field_group_inline_entity_form_entity_form_alter() is not even being hit

    testing inline form rendered by commerce

  • Status changed to Needs review 14 days ago
  • 🇳🇿New Zealand davidwhthomas

    Testing on Drupal 11, with Commerce, the patch works and field_group_inline_entity_form_entity_form_alter is being called.

Production build 0.71.5 2024