[Catalyst] html-widget IfThen constraint
Stephen Keenan
keenan at sanger.ac.uk
Wed Mar 1 13:55:49 CET 2006
On Wed, 1 Mar 2006, Carl Franks wrote:
> I'd like to add a new constraint, which makes 1 or more fields
> required only if another named field is present.
> Something like:
> ->constraint( 'IfThen', 'cc', 'num', 'pin' )
>
> meaning 'num' and 'pin' are only required if 'cc' is present.
>
> Is IfThen a suitable name? Any better ideas?
I'd be happy to see this class of constraint added too. As for a name,
Data::FormValidator has this as 'dependencies' and 'dependency_groups'.
Stephen
> Carl
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
>
>
More information about the Catalyst
mailing list