Let's take content types Page and Article.
Page has an entity reference field to Article (called field_articles).

Article has 2 form modes, Default and Inline.
On Default form, the title field is in a Tab field-group called "Basic", with a parent Tabs group called Tabs (Tabs > Basic > field_articles).
On Inline form, there is no group at all, and title is the only field enabled on the form.

On Page Default form, field_articles is configured to use "Inline entity form - Complex", with view mode Inline.
Problem: it stills picks-up the field configuration from Article/Default form, and the title fields ends-up under a Basic tab that magically appears.

I understand that IEF picks-up the field-group configuration from Default form, regardless of the fact that I am using the Inline form.

Can anyone reproduce the issue?

Best regards,
Renaud

Comments

renaudcuny created an issue. See original summary.

juhog’s picture

I did some debugging and IEF seems to pick up the correct form mode. I made a similiar setup to yours and changed some field weights. The weights of the "Inline" form mode were shown in IEF.

The problem is that field groups are ignored altogether. Only the fields are shown in the form.

I suggest renaming this issue to something like "Support for field groups".

tkoleary’s picture

Title: IEF picks-up field-group configuration from wrong view mode » Add support for field groups
Category: Bug report » Feature request
peacog’s picture

Title: Add support for field groups » Field group configuration assigned to wrong view mode
Category: Feature request » Bug report
Related issues: +#2842354: Form mode ignored as field groups always attached to 'default' form mode

I can confirm the OP's experience. Field groups are supported, but because of a bug in the Field Group module the groups are always attached to the default form mode. When IEF goes to render the form it displays the fields from the custom form mode, but the group information from the default form mode. I've posted a patch over on the Field Group issue queue that fixes the bug: #2842354: Form mode ignored as field groups always attached to 'default' form mode

renaudcuny’s picture

Dear Peacog,
Thanks a lot for the fix in #2842354: Form mode ignored as field groups always attached to 'default' form mode, it definitely solves the issue (sorry for initial confusion about IEF being involved).
Closing this issue

renaudcuny’s picture

Status: Active » Closed (duplicate)