Project

General

Profile

Actions

Bug #72307

closed

Story #69617: FormEngine bugs

Flexform displayCond not evaluated correctly when not in first sheet

Added by Philipp Wrann almost 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2015-12-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.facets>
<TCEforms>
<label>LLL:EXT:XXX/Resources/Private/Language/locallang.xlf:flexform.facets</label>
<displayCond><![CDATA[FIELD:switchableControllerActions:=:Document->index]]></displayCond>
<config>
<type>check</type>
<default>0</default>
</config>
</TCEforms>
</settings.facets>

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 - only on the initial creation of a new element.

If you save the new record with default values the condition is evaluated correctly.

This seems to be connected to:
https://forge.typo3.org/issues/45791

TYPO3 Version is 7.6.1


Files

example-flexform.xml (7.92 KB) example-flexform.xml Philipp Wrann, 2015-12-18 09:57
Actions

Also available in: Atom PDF