Project

General

Profile

Actions

Bug #18042

closed

Selected value of select field not shown in TCEforms

Added by Robert Destigter about 16 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2008-01-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.0
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

I am having trouble with display selected values in a form field of type "select" within a flexform.

The XML defination of the field in my DS is as follows:

<my_field type="array">
<tx_templavoila type="array">
<title>My field</title>
<eType>select</eType>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>select</type>
<itemsProcFunc>fileadmin/classes/class.myclassfile.php:user_myfunction->
myItems</itemsProcFunc>
<items></items>
<size>10</size>
<maxitems>100</maxitems>
<renderMode>singlebox</renderMode>
</config>
<label>My field</label>
</TCEforms>
</my_field>

The field is displayed correctly with the items passed on with "itemsProcFunc". The selected values are even saved in the XML in the database. I checked that with the option "View: Flexform XML", but the options of the selectbox aren't set as selected after saving.

I also tried the option "<renderMode>checkbox</renderMode>", but even than the selected options aren't checked after saving.

John

(issue imported from #M7248)


Files

class.t3lib_transferdata.php.diff (827 Bytes) class.t3lib_transferdata.php.diff Administrator Admin, 2008-10-09 16:08
Actions

Also available in: Atom PDF