Normally a hidden value of the same name is used to make sure a value gets
submitted, but I am sure ZF adds this for you..





2009/10/21 Anders Gunnarsson <[email protected]>

>
> What is the best way to validate that a checkbox is filled? (A Terms
> checkbox)
>
> I have not been able to add a regular validation.
> And if I simply look at the value and add the error myself
> $form->termsBox->addError('Required');
>
> The error disappears when validationg the whole form
> $form->isValid($_POST)
>
> regards
> Anders
>

Reply via email to