[html-formfu] Re: Required and Email constraint doesn't give error message

Carl Franks fireartist at gmail.com
Thu Aug 2 16:26:44 GMT 2007


On 20/07/07, kewei xiao <kewei.xiao at nald.ca> wrote:
> I was at the version before you did change on "legend_loc()", after you
> did changes, I checked out the latest version and updated.  That's when
> I couldn't see any error message.
>
> I can fix these problems by adding " sub message{} in Required and Email
> constraint ", but I wasn't sure if this is proper way to fix it.
>
> my config setting is like this:
>
> - type: text
>     name: first_name
>     label_loc: "* First Name:"
>     constraints:
>       - Required
>       - +NALD::GuestBook::Form::Constraints::Numeric  */( my own
> customized constraint )/*
>     filter:
>           - TrimEdges
>
>   - type: text
>     name: email
>     label_loc: "Email Address:"
>     constraints:
>       - Required
>       - Email
>       - +NALD::Update::Form::Constraint::NotSubscribed */( my own
> customized constraint )/*
>     filters:
>       - TrimEdges
>
> After I sent the first email, I tested my other apps, it was working
> fine, just these two.

Did you get anywhere with this?

I've added a test file at "t/bugs/error_msg.t" to ensure the localized
error strings are being output properly.
I've also tried changing it to the Japanese locale, and it was still working.

Maybe you could try adding your custom constraints to it, or making
other changes to see if you can get it to start failing the tests.

btw, if you're using different locales, we're really short on tests
for localization... hint, hint ;)

Carl



More information about the HTML-FormFu mailing list