HTML::...pyValue(3pm)
π HTML::FormFu::Filter::CopyValue β the manual, but make it make sense π
okay bestie, so this is a page from the User Contributed Perl Documentation collection, and the module we're gagging over today is HTML::FormFu::Filter::CopyValue(3pm). yes the title got truncated in the header, we don't talk about that. π«Ά
β¨ NAME β¨
HTML::FormFu::Filter::CopyValue β copy the value from another field. that's it. that's the whole job. iconic behaviour honestly. π
πΈ VERSION πΈ
version 2.07 β she's got lore, she's got history.
π¦ SYNOPSIS π¦
here's the vibe in YAML, copy it exactly, don't freestyle:
elements:
- type: Text
name: username
- type: Text
name: nickname
filters:
- type: CopyValue
field: username
so nickname is like "if you didn't type anything, just steal whatever username said." π
π DESCRIPTION π
this filter copies the value of another field β but only if the original value of this field is empty. so like, if you actually wrote something in the field, it minds its own business. nothing happens. she's respectful. but if you left it blank? boom, it goes and grabs the value from the field you named. no cap.
π CAVEATS π (read this one fr fr)
okay so this is the part where it gets spicy. if the original field contains an invalid value β and by invalid we mean a value that's gonna get constrained through a constraint β then that invalid value will be copied to this field (the field with the CopyValue filter). π
which means the user has to change two fields to fix it. or, alternatively, you can remove the invalid value in a custom constraint. those are your options, bestie. choose wisely.
π¨ not me warning you: this is real behaviour, not a vibe. two fields, or a custom constraint. periodt.
π AUTHOR π
Mario Minati, "mario.minati@googlemail.com" β thank you for your service, king. π«Ά
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. slay, open source, we love to see it. β¨
π AUTHOR π (yes again, two authors, we contain multitudes)
Carl Franks <cpan@fireartist.com> β also a legend.
π 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, no skips, no summarising, every detail present and accounted for. π§
sign-off time: this beautiful mess was rendered byperl v5.28.1on2019-01-12, and it belongs toHTML::...pyValue(3pm). mwah. π bye bestie, go copy some values responsibly. π
π¦ 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