[html-formfu] 'default_empty_value' doesn't work

Michele Beltrame mb at cattlegrid.info
Fri Oct 31 07:44:27 GMT 2008


Hi Juergen!

> shows me that it is empty, not 0 as expected:
> 
>           'ACTIVE' => '',           

I think this is the expected behaviour: the field is empty as opposed to
undefined. If you want it become 0 you could add a transformer to your
checkboxes.

Or, maybe, default_empty_value could be extended and become something
like default_if_unchecked => 'val'.

Hope this helps.

Michele.

-- 
Michele Beltrame
http://www.cattlegrid.info/
ICQ 76660101 - MSN mb at italpro.net



More information about the HTML-FormFu mailing list