1HTML::FormFu::ConstrainUts:e:rDeCpoenntdrOinb(u3t)ed PerHlTMDLo:c:uFmoernmtFaut:i:oCnonstraint::DependOn(3)
2
3
4
6 HTML::FormFu::Constraint::DependOn - Multi-field Dependency Constraint
7
9 type: DependOn
10 name: foo
11 others: bar
12
14 If a value is submitted for the field this constraint is attached to,
15 then a value must also be submitted for all fields named in "others" in
16 HTML::FormFu::Constraint::_others.
17
18 By default, if any of the named fields in "others" in
19 HTML::FormFu::Constraint::_others are missing, an error will be
20 attached to each missing field. This behaviour can be changed by
21 setting any of "attach_errors_to_base" in
22 HTML::FormFu::Constraint::_others, "attach_errors_to_others" in
23 HTML::FormFu::Constraint::_others or "attach_errors_to" in
24 HTML::FormFu::Constraint::_others.
25
26 This constraint doesn't honour the "not()" value.
27
29 Is a sub-class of, and inherits methods from
30 HTML::FormFu::Constraint::_others, HTML::FormFu::Constraint
31
32 HTML::FormFu
33
35 Carl Franks "cfranks@cpan.org"
36
38 This library is free software, you can redistribute it and/or modify it
39 under the same terms as Perl itself.
40
41
42
43perl v5.12.1 2010-05-H1T6ML::FormFu::Constraint::DependOn(3)