HTML::...lOrNone(3pm)

πŸ“¦
version 2.07000 Β· 5 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– 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 the not() value. nope. not happening. it simply refuses. do not come for her about not(), 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 πŸ‘‘


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