Form::...heckbox(3pm)
π NAME π
Embperl::Form::Control::checkbox β it's giving checkbox control inside an Embperl Form, bestie β¨
This page lives in the User Contributed Perl Documentation corner of the manual world, and honestly? Iconic of it.
π SYNOPSIS π
{
type => 'checkbox',
text => 'blabla',
name => 'foo',
value => 'bar'
}
Look at that. So clean. So demure. π
πΈ DESCRIPTION πΈ
Okay so basically, this thing makes a checkbox control pop up inside an Embperl Form. That's the whole vibe. π¦
Want to know how to actually pass parameters and stuff? Go read Embperl::Form, she explains everything, no cap.
β¨ PARAMETER β¨
typeβ lowkey has to be'checkbox'. Like, that's non-negotiable bestie. It's literally the whole point. πnameβ this one sets the name of the checkbox control. Simple. Elegant. Main character energy. πforce_nameβ this bad boy overwrites the name of the control. And the way that's useful is: inside grids π«Ά, you can force the name of every single checkbox in every single row to be the exact same name. All of them. Same name. Slay.textβ gets used as the label for the checkbox control. So the people know what they're checking, yk? πvalueβ gives the value for the checkbox. Here's the tea though:%%<xx>%%gets replaced by$fdat{<xx>}%%%name%%%gets replaced by$fdat{<name>}, where<name>is the value that you gave with thenameparameter. And fr fr, this is especially useful inside of grids, because that's where the actual name of the html control gets computed dynamically. Computed. Dynamically. She's doing math at runtime and she's thriving. π β¨
classβ extra css class. Pop off, styling queen. π
π Author π
G. Richter (richter at embperl dot org)
Not me shouting out the author. Deserved though. Respect the craft. π
π¦ See Also π¦
perl(1), Embperl, Embperl::Form
Go read them. They're the friend group. π
And that's the whole page, bestie! This little manual moment was brought to you by perl v5.34.0, dated 2022-02-06, and printed on Form::...heckbox(3pm) paper like the absolute icon she is. Stay checking boxes, stay slaying, mwah ππ
β¨
π¦ where this page comes from
- ubuntu jammy: libembperl-perl 2.5.0-16build1 Β· 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