#18042Selected value of select field not shown in TCEforms
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"><br> <tx_templavoila type="array"><br> <title>My field</title> <br> <etype>select</etype> <br> </tx_templavoila><br> <tceforms type="array"><br> <config type="array"><br> <type>select</type> <br><itemsprocfunc>fileadmin/classes/class.myclassfile.php:user_myfunction-><br>myItems</itemsprocfunc><br> <items></items><br> <size>10</size><br> <maxitems>100</maxitems><br> <rendermode>singlebox</rendermode><br> </config><br> <label>My field</label><br> </tceforms><br></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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.