cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <>
Subject Re: CForms booleanfield validate problem
Date Fri, 03 Sep 2004 20:59:46 GMT
Patrick Verboom dijo:
> Hi Bart,
> It is a law thing. The user needs to agree before he may continue in the
> flow.  So I wanted to validate the form and look if the check box was
> checked if not set an validate error message. The problem is that in the
> validate method of the form the boolean field always false is. Now I
> have to use a while loop in the flow script that checks the boolean
> field. I don't think this isn't the way it is supposed to be.

I mean what are you looking for is a test of field's value (true or
false). Note that a checkbox validation will be always true, because there
is no way to have no value at all (the state is always on or off).

I think you don't need to check the returned field value. You can check it
at the flowscript level.

Best Regards,

Antonio Gallardo

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message