HTML::FormFu::Constraint::MinMaxFields(3pm)

HTML::FormFu::Constraint::MinMaxFields3pm

Min/max multi-field constraint

Usage

    type: MinMaxFields
    name: foo
    others: [bar, baz]
    min: 1
    max: 1

Version

version 2.07

Overview

Ensure that at least a minimum and only a maximum number of fields are present.

This constraint doesn't honour the not() value.

Methods

minimum

min

The minimum number of named fields which must be filled in.

"min" is an alias for "minimum".

maximum

max

The maximum number of named fields which must be filled in.

"max" is an alias for "maximum".

The default for max is the number of all affected fields, in other words one more than the number of elements given to others.

attach_errors_to_base

Default Value: 1

attach_errors_to_others

Default Value: 0

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10–12
  6. 13

Author

Mario Minati "[email protected]"

License

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

Author

Carl Franks <[email protected]>

From libhtml-formfu-perl 2.07000-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.