HTML::...lOrNone(3pm)
π HTML::FormFu::Constraint::AllOrNone β bestie edition π
okay so this is the HTML::FormFu::Constraint::AllOrNone page from the User Contributed Perl Documentation, and honestly? she's a baddie. let's get into it π«Ά
β¨ NAME β¨
HTML::FormFu::Constraint::AllOrNone β the Multi-field All or None Constraint. that's her whole thing. that's the brand. π
π VERSION π
version 2.07 β yes she's on 2.07, iconic behavior, no notes β¨
π¦ SYNOPSIS π¦
type: AllOrNone
name: foo
others: [bar, baz]
like literally that's the whole vibe check. copy it, paste it, slay it. πΈ
π DESCRIPTION π
okay so the whole point: ensure that either all or none of the named fields are present. that's it. that's the assignment. all of them or none of them, there is no in-between, this constraint does not do halfsies. periodt. π
now, by default, if some but not all fields are submitted, errors get attached to those fields which weren't submitted. (so rude to the shy fields but okay.) you can change this behavior by setting any of attach_errors_to_base in HTML::FormFu::Role::Constraint::Others, attach_errors_to_others in HTML::FormFu::Role::Constraint::Others, or attach_errors_to in HTML::FormFu::Role::Constraint::Others. pick your fighter, bestie π
β οΈ important bestie warning: this constraint doesn't honour thenot()value. nope. not happening. it simply refuses. do not come for her aboutnot(), she will not respond. π
π SEE ALSO π
- She is a sub-class of, and inherits methods from
HTML::FormFu::Role::Constraint::Others,HTML::FormFu::Constraintβ family tree stays winning π³ HTML::FormFuβ the mothership herself π
π«Ά AUTHOR π«Ά
Carl Franks "cfranks@cpan.org" β ty king for your service π«‘
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. (so like, go off, respectfully π)
π§ AUTHOR π§
Carl Franks <cpan@fireartist.com> β yes again, two entries, he really said main character energy and he was correct π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2018 by Carl Franks. π
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. β¨
and that's the whole page bestie, no cap. perl v5.28.1, dated 2019-01-12, from the HTML::...lOrNone(3pm) page β mwah, go build something cute, ily ππ¦πΈ
π¦ where this page comes from
- debian bookworm: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms