Bug #76637
closedFlexform: Using settings as displayCond within another sheet
100%
Description
With displayCond in flexforms all sheets are handled separately, which is at least not intuitive.
Example given:
You have two sheets in your flexform, say 'Contents to display' (sDef) and 'Layout settings' (Layout).
In the first sheet you use a select list named <settings.typeOfContent> (and some other settings).
In the second sheet you want to have special options if <settings.typeOfContent> is 'LectureList'.
Neither
<numIndex index="0">FIELD:settings.typeOfContent:=:LectureList</numIndex>
nor
<numIndex index="0">FIELD:sDef.settings.typeOfContent:=:LectureList</numIndex>
will work, since the settings of both sheets are neither integrated regardless of sheet nor the settings done in another sheet are available to the ElementConditionMatcher.
So you have to put all in one sheet.
A displayCond at sheet level is not really an option:
You would have to set up a new sheet for every dependent setting in your Layout sheet since it's not recommendable to duplicate the Layout-Sheet where Layout2 would have the same settings.xyz names like Layout1. (Extbase will read all settings from the flexform with no regard to which sheet is visible to the BeUser and which not.)