[Catalyst] html-widget IfThen constraint

Sebastian Riedel sri at oook.de
Wed Mar 1 17:01:48 CET 2006


01.03.2006 13:29 Carl Franks:

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

Good idea, patch would be accepted.


--
sebastian




More information about the Catalyst mailing list