Issue Bug Closed

#72307Flexform displayCond not evaluated correctly when not in first sheet

Philipp Wrann 12/18/15, 09:57 updated 10/02/18, 11:26

Description

I recently noticed some bug similiar to this one:
https://forge.typo3.org/issues/67879

If i place displayCond as in the example below in the first sheet of a flexform it gets evaluated.
If i place it in the second sheet the field is not visible, even the condition is met.

<settings><br> <tceforms><br> <label>LLL:EXT:XXX/Resources/Private/Language/locallang.xlf:flexform.facets</label><br> <displaycond><!--<![CDATA[FIELD:switchableControllerActions:=:Document->index]]&gt;</displayCond><br /> <config><br /> <type>check</type><br /> <default>0</default><br /> </config><br /> </TCEforms><br /></settings.facets> <p>Further displayConditions regarding the switchableControllerActions are not displayed on default values, so if the default value is set and it is valid for a displaycondition the field will not be displayed anyway &#8211; only on the initial creation of a new element.</p> <p>If you save the new record with default values the condition is evaluated correctly.</p> <p>This seems to be connected to:<br /><a href="https://forge.typo3.org/issues/45791" target="_blank" rel="noreferrer">https://forge.typo3.org/issues/45791</a></p> <p>TYPO3 Version is 7.6.1</p>--></displaycond></tceforms></settings>

Reviews 1