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
Comment #2
juhog commentedI 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".
Comment #3
tkoleary commentedComment #4
peacog commentedI 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
Comment #5
renaudcuny commentedDear 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
Comment #6
renaudcuny commentedIssue solved in #2842354: Form mode ignored as field groups always attached to 'default' form mode