radio.formwidget

A <radio class="formwidget" only returns input when it's selected. When harvesting, if the radiobutton has no value, the label's value is used. When seeding, if the element has no label, the label of the matching value is used, otherwise it is ignored.

As an alternative to lots of radiobuttons with similar names in a plain radiogroup, you can use a radiogroup.formwidget.

see menuitems for <menuitem type="radio"

Example:

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

Additional Attributes:


Additional Methods: