Re: [html-formfu] Conditional constraints

2008-12-10 Thread Carl Franks
2008/12/9 Ronald J Kimball <[EMAIL PROTECTED]>: > Carl Franks wrote: > >> Check out $constraint->when() >> >> http://search.cpan.org/~cfranks/HTML-FormFu-0.03007/lib/HTML/FormFu/Constraint.pm#when >> >> If the docs aren't clear, there's examples in the test suite: >>t/constraints/constraint_whe

Re: [html-formfu] Conditional constraints

2008-12-09 Thread Ronald J Kimball
Carl Franks wrote: Check out $constraint->when() http://search.cpan.org/~cfranks/HTML-FormFu-0.03007/lib/HTML/FormFu/Constraint.pm#when If the docs aren't clear, there's examples in the test suite: t/constraints/constraint_when.t t/constraints/constraint_when.yml Well, that's rather

Re: [html-formfu] Conditional constraints

2008-12-09 Thread Carl Franks
2008/12/9 Ronald J Kimball <[EMAIL PROTECTED]>: > I'm curious about what would be best practice for doing "conditional > constraints", such as: if fieldA's value is 'foo', then fieldB is required; > or if fieldA's value is 'bar', then fieldB must have the value 'baz'. Have > other people had to do