[html-formfu] Cookbook "custom errors" bug

Ruben Fonseca rubenfonseca at di.uminho.pt
Fri Oct 26 19:03:59 GMT 2007

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):


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!

Rúben Fonseca <ruben.fonseca at log.pt>
Technical Consultant
log <www.log.pt>

Tel: +351 21 330 42 20
Fax: +351 21 330 42 19
Calçada Marquês de Abrantes, 45 - 3º Dto
1200-718 Lisboa

More information about the HTML-FormFu mailing list