[html-formfu] Bug bug bu g bug

Ruben Fonseca rubenfonseca at di.uminho.pt
Fri Oct 26 17:05:08 GMT 2007


On Fri, 2007-10-26 at 11:16 +0100, Carl Franks wrote:
> Hi Ruben,
> 
> On 26/10/2007, Ruben Fonseca <rubenfonseca at di.uminho.pt> wrote:
> > Hi! I was following the Cookbook on the section "Custom error messages"
> > but the hack does not work for me. I'm using all the latest CPAN
> > releases. Here is the small steps to reproduce the problem. I've tried
> > on both Linux and MacOS with the same problem.
> 
> > $form->get_field('test')->get_constraint('Callback')->force_errors(1);
> 
> Sorry, that's a typo - I'll fix it.
> 
> It should be:
>     ->get_constraint({ type => 'Callback' })
> 
> Simply passing ('Callback') is equivalent to:
>     ->get_constraint({ name => 'Callback' })
> which would return nothing.

Hi Carl! Thank you for your reply! It was the last thing I thought...

But, even following your tip, it still does not work. I don't have the
runtime error anymore, but the form/element still appears with no error
message. Am I missing something?

Ruben

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