[TYPO3-mvc] f:form.select, multiple and selected values

Stefano Cecere scecere at krur.com
Thu Sep 6 16:41:41 CEST 2012


On 06/09/12 16:22, Claus Due wrote:
> Hi Stefano,
>
>> now i'm facing the problem that if i deselect all the items, extbase sees it like a "do nothing" and it doesn't clean all options... :)
>
> You can probably avoid that completely by placing a hidden field that has the same name as the <select> field but comes before the <select> in the DOM. That way, if the <select> has no options and thus no values, whichever value was set in the hidden field will be used (usually this would be a zero, but for array-properties this may need to be an empty string instead.

but, doesn't extbase already put that hidden empty value?
i see it, in my html!

-- 

-- --- ----- -------

Stefano Cecere
KRUR studio - http://krur.com


More information about the TYPO3-project-typo3v4mvc mailing list