The checkbox form field type provides a single checkbox. If the parameter has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected.

Example XML field definition:

<field name="show_title" type="checkbox" label="Show title" description="Show the title of the item" value="1" />

Example XML field definition (unchecked):

<field name="show_title" type="checkbox" label="Show title" description="Show the title of the item" value="1" default="0" />

[edit] See also

License: Joomla! Electronic Documentation License
Source page: http://docs.joomla.org/Checkbox_form_field_type
Page retrieved: 0.144 seconds, 2.18 MB

Top