Form::...heckbox(3pm)

πŸ“¦
version 2.5.0 Β· 2 versions
, in ubuntu jammy

πŸ’– 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 the name parameter. 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