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 over 8 years ago. Updated over 5 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 #1

Updated by Morton Jonuschat over 8 years ago

  • Category changed from DataHandler aka TCEmain to FormEngine aka TCEforms
  • Status changed from New to Needs Feedback
  • Target version deleted (7 LTS)

Hi Philipp,

afaik this is the intended behavior. DisplayCond in FlexForm has two "levels". If you use a displayCond to decide wether a whole sheet should be shown/hidden then you have access to the values of all sheets using FIELD:sheetName.fieldName, if you use displayCond on on a field you only have access to the fields on that sheet (plus the database fields with parentRec.fieldName). Your example tries to access the field "switchableControllerActions" from one sheet within another sheet, which is why it's not working.

Did this work before? If so could you point me to the version of TYPO3?

Actions #2

Updated by Philipp Wrann over 8 years ago

Ahhhh thank you Morton! I simply did not know that!

But dont close this, the second problem regarding the default value not be be evaluated as true on record-creation remains...

Actions #3

Updated by Philipp Wrann over 8 years ago

Cant get it working...

Same sheet (sDEF) displaycond: <displayCond><![CDATA[FIELD:sDEF.switchableControllerActions:=:Document->list]]></displayCond> does NOT work
Same sheet (sDEF) displaycond: <displayCond><![CDATA[FIELD:switchableControllerActions:=:Document->list]]></displayCond> does work
Other sheet: <displayCond><![CDATA[FIELD:sDEF.switchableControllerActions:=:Document->list]]></displayCond> does NOT work
Other sheet: <displayCond><![CDATA[FIELD:switchableControllerActions:=:Document->list]]></displayCond> does NOT work

Also displayConditions are NOT evaluated correctly with default values.

So is this a bug or am i still wrong?

Actions #4

Updated by Mathias Schreiber about 8 years ago

  • Parent task set to #69617
Actions #5

Updated by Alexander Opitz almost 8 years ago

  • Status changed from Needs Feedback to New
Actions #6

Updated by Gerrit Code Review over 7 years ago

  • Status changed from New to Under Review

Patch set 17 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #7

Updated by Gerrit Code Review over 7 years ago

Patch set 18 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #8

Updated by Gerrit Code Review over 7 years ago

Patch set 19 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #9

Updated by Gerrit Code Review over 7 years ago

Patch set 20 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #10

Updated by Gerrit Code Review over 7 years ago

Patch set 21 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #11

Updated by Gerrit Code Review over 7 years ago

Patch set 22 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #12

Updated by Gerrit Code Review over 7 years ago

Patch set 23 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #13

Updated by Gerrit Code Review over 7 years ago

Patch set 24 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #14

Updated by Gerrit Code Review over 7 years ago

Patch set 25 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #15

Updated by Gerrit Code Review over 7 years ago

Patch set 26 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #16

Updated by Gerrit Code Review over 7 years ago

Patch set 27 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #17

Updated by Gerrit Code Review over 7 years ago

Patch set 28 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #18

Updated by Gerrit Code Review over 7 years ago

Patch set 29 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #19

Updated by Gerrit Code Review over 7 years ago

Patch set 30 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #20

Updated by Gerrit Code Review over 7 years ago

Patch set 31 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #21

Updated by Gerrit Code Review over 7 years ago

Patch set 32 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #22

Updated by Gerrit Code Review over 7 years ago

Patch set 33 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #23

Updated by Gerrit Code Review over 7 years ago

Patch set 34 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #24

Updated by Gerrit Code Review over 7 years ago

Patch set 35 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #25

Updated by Gerrit Code Review over 7 years ago

Patch set 36 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #26

Updated by Gerrit Code Review over 7 years ago

Patch set 37 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #27

Updated by Gerrit Code Review over 7 years ago

Patch set 38 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #28

Updated by Gerrit Code Review over 7 years ago

Patch set 39 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #29

Updated by Gerrit Code Review over 7 years ago

Patch set 40 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #30

Updated by Gerrit Code Review over 7 years ago

Patch set 41 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #31

Updated by Gerrit Code Review over 7 years ago

Patch set 42 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #32

Updated by Gerrit Code Review over 7 years ago

Patch set 43 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #33

Updated by Gerrit Code Review over 7 years ago

Patch set 44 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #34

Updated by Gerrit Code Review over 7 years ago

Patch set 45 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #35

Updated by Gerrit Code Review over 7 years ago

Patch set 46 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #36

Updated by Gerrit Code Review over 7 years ago

Patch set 47 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #37

Updated by Gerrit Code Review over 7 years ago

Patch set 48 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50879

Actions #38

Updated by Christian Kuhn over 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #39

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF