HTML::...eckbox(3pm)
π NAME π
HTML::FormHandler::Field::Checkbox β a checkbox field type, bestie. This page is from the User Contributed Perl Documentation, and the manpage header is literally HTML::...eckbox(3pm) β yes, the terminal said βnot todayβ and truncated it, iconic. β¨
β¨ VERSION β¨
version 0.40068, periodt. π
π¦ DESCRIPTION π¦
okay so this field is very similar to the Boolean Widget except that this field allows other positive values besides 1. Since unselected checkboxes do not return a parameter, fields with Checkbox type will always be set to the 'input_without_param' default if they do not appear in the form. π«Ά
π widget π
checkbox β thatβs the widget, thatβs the vibe. β
π checkbox_value π
In order to create the HTML for a checkbox, there must be a value="xx". This value is specified with the 'checkbox_value' attribute, which defaults to 1. Not me being obsessed with a default. π
π input_without_param π
If the checkbox is not checked, it will be set to the value of this attribute (the unchecked value). Default = 0. Because unchecked checkboxes do not return anything in the HTTP parameters, the absence of a checkbox key in the parameters hash forces this field to this value. This means that Checkbox fields, unlike other fields, will not be ignored if there is no input. If a particular checkbox should not be processed for a particular form, you must set 'inactive' to 1 instead. π¨
bestie, this is the key lore: no checkbox key in the HTTP parameters = this field gets forced toinput_without_param. It does not get ignored like other fields. If you need it skipped for a form,inactive=1, no cap. π
Note that a checkbox is only 'checked' when the 'checkbox_value' is provided. The 'value' for a non-checked checkbox is only really useful for creating form values such as are stored in a database. πΈ
πΈ AUTHOR πΈ
FormHandler Contributors - see HTML::FormHandler. π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2017 by Gerda Shank. π
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π
okay thatβs the whole page, bestie π«Ά itβs perl v5.34.0, dated 2022-03-25, and the footer title is HTML::...eckbox(3pm) β still truncated, still iconic. bye! π
β¨
π¦ where this page comes from
- debian bookworm: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms