Joomla checkbox Form Field Type

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 (checked):

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

Additional Parameters

checked: The checked status of the checkbox. It should be set to 1 to check the checkbox by default.