[html-formfu] Patch to process when Constraint condition in any case

Michele Beltrame mb at cattlegrid.info
Mon Jun 30 23:33:57 BST 2008


Hi Carl!

Sorry if it took too ling to get back to you, been rather busy.

> I've added a 'default_empty_value' method to all fields.
> It defaults to false, but if you set it to true, then if the form's
> submitted, and the field has no value, it'll get an empty value.
> This means you don't have to set any extra options in your 'when' config.

This works great, and seems a good solution.

Thanks a lot,
Michele.

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



More information about the HTML-FormFu mailing list