1HTML::FormFu::ConstrainUts:e:rMiCnoMnatxrFiibeultdesdH(T3PM)eLr:l:FDoorcmuFmue:n:tCaotnisotnraint::MinMaxFields(3)
2
3
4
6 HTML::FormFu::Constraint::MinMaxFields - Min/Max Multi-field Constraint
7
9 version 2.07
10
12 type: MinMaxFields
13 name: foo
14 others: [bar, baz]
15 min: 1
16 max: 1
17
19 Ensure that at least a minimum and only a maximum number of fields are
20 present.
21
22 This constraint doesn't honour the "not()" value.
23
25 minimum
26 min
27 The minimum number of named fields which must be filled in.
28
29 "min" is an alias for "minimum".
30
31 maximum
32 max
33 The maximum number of named fields which must be filled in.
34
35 "max" is an alias for "maximum".
36
37 The default for max is the number of all affected fields, in other
38 words one more than the number of elements given to others.
39
40 attach_errors_to_base
41 Default Value: 1
42
43 attach_errors_to_others
44 Default Value: 0
45
47 Is a sub-class of, and inherits methods from
48 HTML::FormFu::Role::Constraint::Others, HTML::FormFu::Constraint
49
50 HTML::FormFu
51
53 Mario Minati "mario.minati@googlemail.com"
54
56 This library is free software, you can redistribute it and/or modify it
57 under the same terms as Perl itself.
58
60 Carl Franks <cpan@fireartist.com>
61
63 This software is copyright (c) 2018 by Carl Franks.
64
65 This is free software; you can redistribute it and/or modify it under
66 the same terms as the Perl 5 programming language system itself.
67
68
69
70perl v5.32.1 2021H-T0M1L-:2:7FormFu::Constraint::MinMaxFields(3)