checkbox.formwidget

A <checkbox class="formwidget" only returns data when it is checked. When harvesting, if a checkbox has no value, it's label is used as value.

see menuitems for <menuitem type="checkbox"

Note: when seeding, checkboxes are never unchecked. Such is the nature of a checkbox: if it is not checked, it doesn't mean it should be unchecked; it means nothing. If you need a switch, use radiobuttons.

Example:

<checkbox label="one" name="r1" value="yes" class="formwidget" /> result:
seed: r1/yes/one
cgi: r1=yes

Additional Attributes:


Additional Methods: