1HTML::FormFu::ConstrainUts:e:rMiCnoMnatxrFiibeultdesdH(T3PM)eLr:l:FDoorcmuFmue:n:tCaotnisotnraint::MinMaxFields(3)
2
3
4

NAME

6       HTML::FormFu::Constraint::MinMaxFields - Min/Max Multi-field Constraint
7

SYNOPSIS

9           type: MinMaxFields
10           name: foo
11           others: [bar, baz]
12           min: 1
13           max: 1
14

DESCRIPTION

16       Ensure that at least a minimum and only a maximum number of fields are
17       present.
18
19       This constraint doesn't honour the "not()" value.
20

METHODS

22   minimum
23   min
24       The minimum number of named fields which must be filled in.
25
26       "min" is an alias for "minimum".
27
28   maximum
29   max
30       The maximum number of named fields which must be filled in.
31
32       "max" is an alias for "maximum".
33
34       The default for max is the number of all affected fields, in other
35       words one more than the number of elements given to others.
36
37   attach_errors_to_base
38       Default Value: 1
39
40   attach_errors_to_others
41       Default Value: 0
42

SEE ALSO

44       Is a sub-class of, and inherits methods from
45       HTML::FormFu::Constraint::_others, HTML::FormFu::Constraint
46
47       HTML::FormFu
48

AUTHOR

50       Mario Minati "mario.minati@googlemail.com"
51

LICENSE

53       This library is free software, you can redistribute it and/or modify it
54       under the same terms as Perl itself.
55
56
57
58perl v5.12.1                      2010H-T0M5L-:2:3FormFu::Constraint::MinMaxFields(3)
Impressum