1HTML::FormFu::ConstrainUts:e:rDeCpoenntdrOinb(u3t)ed PerHlTMDLo:c:uFmoernmtFaut:i:oCnonstraint::DependOn(3)
2
3
4

NAME

6       HTML::FormFu::Constraint::DependOn - Multi-field Dependency Constraint
7

VERSION

9       version 2.07
10

SYNOPSIS

12           type: DependOn
13           name: foo
14           others: bar
15

DESCRIPTION

17       If a value is submitted for the field this constraint is attached to,
18       then a value must also be submitted for all fields named in "others" in
19       HTML::FormFu::Role::Constraint::Others.
20
21       By default, if any of the named fields in "others" in
22       HTML::FormFu::Role::Constraint::Others are missing, an error will be
23       attached to each missing field. This behaviour can be changed by
24       setting any of "attach_errors_to_base" in
25       HTML::FormFu::Role::Constraint::Others, "attach_errors_to_others" in
26       HTML::FormFu::Role::Constraint::Others or "attach_errors_to" in
27       HTML::FormFu::Role::Constraint::Others.
28
29       This constraint doesn't honour the not() value.
30

SEE ALSO

32       Is a sub-class of, and inherits methods from
33       HTML::FormFu::Role::Constraint::Others, HTML::FormFu::Constraint
34
35       HTML::FormFu
36

AUTHOR

38       Carl Franks "cfranks@cpan.org"
39

LICENSE

41       This library is free software, you can redistribute it and/or modify it
42       under the same terms as Perl itself.
43

AUTHOR

45       Carl Franks <cpan@fireartist.com>
46
48       This software is copyright (c) 2018 by Carl Franks.
49
50       This is free software; you can redistribute it and/or modify it under
51       the same terms as the Perl 5 programming language system itself.
52
53
54
55perl v5.38.0                      2023-07-H2T0ML::FormFu::Constraint::DependOn(3)
Impressum