Hi,you can either work around that behavior in your html-code by adding a hidden input field with a value of "0" before the checkbox. Or you can use an AgaviSetValidator - it only exports a given value, thus allowing you to set an incoming parameter. Use an OrOperatorValidator to combine the validator for your field (so that it's run when the box is ticked) and the AgaviSetValidator (so that the value is exported if the box is not ticked).
Cheers felix On Feb 17, 2009, at 6:01 PM, Marius Hein wrote:
Hello list!So just a simple question: I've some checkboxes on a form and if the box is not checked the value is not dispatched. Is there an validator to seta default value for check or radio fields? Or maybe there is a common, better way ..... Regards, Marius. _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
