[TYPO3-mvc] f:form.select, multiple and selected values
Claus Due
claus at wildside.dk
Thu Sep 6 16:22:56 CEST 2012
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.
Hope this (also) helps :)
Cheers,
Claus
More information about the TYPO3-project-typo3v4mvc
mailing list