[html-formfu] Uniqueness validator - best practice

Carl Franks fireartist at gmail.com
Tue Mar 17 11:38:45 GMT 2009


2009/3/17 Ian Wells <ijw at cack.org.uk>:
> I want to validate that a new, or changed, name in a form is unqiue
> within its DBIC table.
>
> I don't suppose someone's got a good example of how this should look?

I thought there was a DBIC::Unique constraint or validator somewhere
in svn, but can't find it.
Maybe check the list archives.

Also check out today's "Perl DBI with FormFu" thread for an example of
how to write a custom validator.

Carl



More information about the HTML-FormFu mailing list