Project

General

Profile

Actions

Bug #42333

closed

Flexform displayCondition

Added by Mikel no-lastname-given about 12 years ago. Updated about 9 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2012-10-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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


Related issues 7 (0 open7 closed)

Related to TYPO3 Core - Bug #35434: displayCond does not work for Flexform SectionsRejected2012-03-31

Actions
Related to TYPO3 Core - Bug #45791: FlexForms: "displayCond" does not work with default-ValuesClosed2013-02-24

Actions
Related to TYPO3 Core - Feature #57482: FlexForms: DisplayCondition for Sheet in ExtBase Plugin Closed2014-04-01

Actions
Related to TYPO3 Core - Bug #60339: displayCond for sheets in flexform with extbase settings namespaceClosed2014-07-15

Actions
Related to TYPO3 Core - Bug #64323: Argument "displayCond" not work into other "flux:form.sheet"Closed2015-01-16

Actions
Related to TYPO3 Core - Bug #67879: Using displaycond on switchable controller actions in Flexform with TYPO3 7.3 not possibleClosedAndreas Wolf2015-07-01

Actions
Related to TYPO3 Core - Bug #68989: Sheet Flexform displayCondition logical operatorClosed2015-08-12

Actions
Actions

Also available in: Atom PDF