#42333Flexform displayCondition
Description
I just wanted to configure my flexform file with conditions.
The field should be displayed depending from a field from another tab.. that didn’t work
I’ve already found this issue:
http://forge.typo3.org/issues/33390
In the t3lib/class.t3lib_tceforms.php on line 2530 is everything ok.
That is just how it should work.
But in the function “isDisplayCondition” it is still wrong.
if ($ffValueKey) {
if (strpos($parts[1], 'parentRec.') !== FALSE) {
$fParts = explode('.', $parts[1]);
$theFieldValue = $row['parentRec'][$fParts[1]];
} else {
$theFieldValue = $row[$parts[1]][$ffValueKey];
}
} else {
$theFieldValue = $row[$parts[1]];
}
Here it still checks if the string “parentRec” is in the condition String.
It doesn’t provide different tabs in conditions.
I’ve tried this in my flexform
<displayCond>FIELD:sDEF.switchableControllerActions:=:List->new</displayCond>
Its in another Tab than “sDEF”.
I think its a bug.
But if i just made an mistake in the usage.. please correct me
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 7
- Bug #35434displayCond does not work for Flexform Sections
- Bug #45791FlexForms: "displayCond" does not work with default-Values
- Feature #57482FlexForms: DisplayCondition for Sheet in ExtBase Plugin
- Bug #60339displayCond for sheets in flexform with extbase settings namespace
- Bug #64323Argument "displayCond" not work into other "flux:form.sheet"
- Bug #67879Using displaycond on switchable controller actions in Flexform with TYPO3 7.3 not possible
- Bug #68989Sheet Flexform displayCondition logical operator