[html-formfu] Cookbook "custom errors" bug

Mario Minati mario.minati at googlemail.com
Sun Oct 28 11:35:01 GMT 2007


On Friday 26 October 2007 20:03:59 Ruben Fonseca wrote:
> Hi! I've a question about the "custom error messages" on cookbook.
>
> Following the cookbook (and with the typo fix), it seems to work at the
> first glance. But then I tried this on a real application (pseudo code):
>
> $form->set_constraint_force_errors(1);
> $form->process($request);
>
> if($form->submitted_and_valid) {
>
> }
>
> The problem with this is that on my test, submitted_and_valid continues
> to return 'true' even with the force_errors before. I think this is not
> supposed to happen. Or is there another hack to real enforce the error?
>
> Thank you!
> Ruben

Hi Ruben, 
this should not happen.

Could you paste some real code.

Greets,
Mario



More information about the HTML-FormFu mailing list