HTML::...pendOn(3pm)
π NAME π
HTML::FormFu::Constraint::DependOn β the Multi-field Dependency Constraint, bestie. It's giving "you can't have one without the other." β¨
πΈ VERSION πΈ
version 2.07 β she's grown, she's evolved π
β¨ SYNOPSIS β¨
type: DependOn
name: foo
others: bar
π¦ DESCRIPTION π¦
okay so here's the tea π β if a value gets submitted for the field this constraint is attached to, then a value must also be submitted for all the fields named in others over in HTML::FormFu::Role::Constraint::Others. like, they're a package deal. no solo acts. π
By default, if any of the named fields in others (again, that's HTML::FormFu::Role::Constraint::Others, iykyk) are missing, an error gets attached to each missing field. so everybody who didn't show up gets called out individually π. but don't worry, you can switch that up β just set any of attach_errors_to_base, attach_errors_to_others, or attach_errors_to in HTML::FormFu::Role::Constraint::Others and the behaviour changes. your call, your rules π
π¨ heads up bestie: this constraint doesn't honour the not() value. not me being dramatic, it's literally just not a thing here. periodt.
π SEE ALSO π
- She's a sub-class of, and inherits methods from,
HTML::FormFu::Role::Constraint::OthersandHTML::FormFu::Constraint𧬠β the family tree is immaculate HTML::FormFuβ the mothership π
π AUTHOR π
Carl Franks cfranks@cpan.org
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. slay π
π AUTHOR (yes, again, iconic of her) π
Carl Franks <cpan@fireartist.com>
π 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 vibe, bestie π«Ά this page is HTML::...pendOn(3pm) β yes the manual name got chopped, she's mysterious like that π§ β brought to you by perl v5.28.1, dated 2019-01-12, and it ATE. no cap. go forth and constrain those dependent fields πβ¨πΈ
π¦ 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