[html-formfu] How to override standard message,
'This field is required'?
Moritz Onken
onken at houseofdesign.de
Wed Mar 25 11:34:31 GMT 2009
Hi,
you can set "message" on every constraint which will overwrite the
error message.
Example:
- type: Text
name: foo
constraints:
- type: Required
message: Dieses Feld wird benötigt
See http://search.cpan.org/~cfranks/HTML-FormFu-0.03007/lib/HTML/FormFu/Constraint.pm
for more information on that topic.
cheers,
moritz
Am 25.03.2009 um 12:08 schrieb Gordon Yeong:
> Hi,
>
> Been using html::formfu for abit. Love the validation and
> configurability behind it:)
>
> got a very interesting question: How to override standard message,
> 'This field is required'?
>
> This is the message the comes up when you hit "submit" with an
> incomplete form.
> Those fields that are required which are left blank will have this
> message, 'This field is required' displayed.
>
>
> Gordon
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
More information about the HTML-FormFu
mailing list