Project

General

Profile

Actions

Bug #45791

closed

FlexForms: "displayCond" does not work with default-Values

Added by Lars no-lastname-given about 11 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #42333: Flexform displayConditionRejected2012-10-24

Actions
Actions #1

Updated by Mathias Schreiber about 9 years ago

  • Target version set to 7.4 (Backend)
  • Is Regression set to No
Actions #2

Updated by Susanne Moog over 8 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #3

Updated by Benni Mack over 8 years ago

  • Target version changed from 7.5 to 7 LTS
Actions #4

Updated by Mathias Schreiber over 8 years ago

  • Status changed from New to Closed

Fixed on da master branch

Actions

Also available in: Atom PDF