Checkbox

The Checkbox field may be used to offer a single check option, or a group of multi-check options (Checkbox List)

checkbox1

Attributes

AttributesTypeRequiredDescription
idstringRequiredRequired. Unique ID identifying the field. It will be used as meta_key. Must be different from all other field IDs.
titlestringRequiredDisplays title of the option.
subtitlestringOptionalSubtitle display of the option, situated beneath the title.
descstringOptionalDescription of the option, appearing beneath the field control.
typestringRequiredValue identifying the field type. For Checkbox field here we use value checkbox
defaultstringOptionalValue indicated the key value of the options array to set as default.
colintOptionalThe proportion of columns that display field on 12 columns per row.

Example Declaration