Actions
Bug #45791
closedFlexForms: "displayCond" does not work with default-Values
Start date:
2013-02-24
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
If you use a flexform element with da display condition, which checks a value from a other element, the default value of the checked field will not be respected.
Example:
<T3DataStructure> <sheets> <sDEF> <ROOT> <TCEforms> <sheetTitle>Settings</sheetTitle> </TCEforms> <type>array</type> <el> <what_to_display> <TCEforms> <label>What to display</label> <onChange>reload</onChange> <config> <type>select</type> <default>list</default> <items> <numIndex index="0"> <numIndex index="0">Single-View</numIndex> <numIndex index="1">single</numIndex> </numIndex> <numIndex index="1"> <numIndex index="0">List-View</numIndex> <numIndex index="1">list</numIndex> </numIndex> </items> </config> </TCEforms> </what_to_display> <bodytext> <TCEforms> <label>TEXT</label> <displayCond>FIELD:what_to_display:=:list</displayCond> <config> <type>input</type> </config> </TCEforms> </bodytext> </el> </ROOT> </sDEF> </sheets> </T3DataStructure>
The select-field has default value "list", the right option is pre-selected, but the bodytext-field is not visible. Only when the form is saved, the field "bodytext" is visible.
Tested with TYPO3 4.7.7/4.7.8
Updated by Mathias Schreiber about 10 years ago
- Target version set to 7.4 (Backend)
- Is Regression set to No
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Mathias Schreiber about 9 years ago
- Status changed from New to Closed
Fixed on da master branch
Actions