Problem/Motivation

When I have nested fieldgroups in a "form_step" fieldgroup these are shown in every step.

Steps to reproduce

Configure a content-type form display as follows:

  • STEP 1 (fieldgroup "form_step")
    • group 1 (fieldgroup "html_element")
      • group 1.1 (fieldgroup "html_element")
    • group 2 (fieldgroup "html_element")
  • STEP 2 (fieldgroup "form_step")
    • group 3 (fieldgroup "html_element")
  • STEP 3 (fieldgroup "form_step")
    • group 4 (fieldgroup "html_element")

Fieldgroups won't respect the manage form display and they will be shown in every step.

Comments

phergo created an issue. See original summary.

phergo’s picture

Status: Needs work » Needs review
StatusFileSize
new2.26 KB

I have created a patch where fieldgroups are added to the $all_children array and the format_type is set to "hidden" for those which are not in the current step.

phergo’s picture

I have modified the patch to make it compatible with 2.0.0. The patch #2 was generated from the branch 8.x-1.x

phergo’s picture

gutagomez’s picture

Patch #4 works for me.
Thank you

dmezquia’s picture

Tested ok patch #4 with:

Field group Details
- Field group Fieldset

andrei.vesterli’s picture

Status: Needs review » Fixed

Moved to the 2.0.1 release. All is fine here.

andrei.vesterli’s picture

Status: Fixed » Closed (fixed)

andrei.vesterli’s picture