I use a repeating group of sections, inside each section, there is a content box. I use toggle to hide the content box
I added a repeating group of sub-section inside the content box, not every section has a sub-section.
The problem I’m encountering is that when the section doesn’t have a sub-section the height of the content box isn’t fully collapsing (as shown in the images below)
*It works great when a section does have a subsection (see 3. section)
*The condition on the sub-section element is to make it visible when the section has children sections