[TYPO3-english] extabase - select value as selected.

Hans-Peter M. istbanane at googlemail.com
Wed May 22 17:02:13 CEST 2013


hi,
i have tried many things. I set the value="{uid}" or value="{daten}".
But after submit the form, the first record is always available.

I don't know to debug my problem.

On this site:
http://www.sjr-stuttgart.de/index.php?id=33
You can choose a category. The Value was always hold after the submit.

Regards
Hans-Peter



Am 22.05.13 15:39, schrieb Patrick Schriner:
> I don't know if it works in your specific case, but I usually set the
> "value" attribute of the <f:form.select> to the right value and that
> leads to the correct preselection (might have to try whether it wants
> model or uid in your case).
>
> On Wed, 22 May 2013 13:44:39 +0200, Hans-Peter M.
> <istbanane at googlemail.com> wrote:
>
>> Hi,
>> i have a view that displays the records in a list.
>> Now I want to filter the records according to certain categories.
>>
>> The Code in fluid:
>>
>> <f:form action="list" name="choose">
>> <f:form.select property="category" options="{daten}"
>> optionValueField="uid"  optionLabelField="name"
>> additionalAttributes="{onChange :
>> 'document.choose.submit();'}"></f:form.select>
>> </f:form>
>>
>> I want that the appropriate selection of the category is pre-selected.
>> (Html code: selected)
>> This does not work for me.
>> I wonder why?
>> Error in the model?
>>
>>
>> regards
>> Hans-Peter
>>
>
>



More information about the TYPO3-english mailing list