Checkbox
Last updated
Last updated
Checkbox field renders a set of native labeled checkboxes. Supports initial checked
or disabled
attributes.
This will produce the following
It will use the label text as the value. If you wish to separate values from labels use the following syntax for the choices
key:
checked
and disabled
If checked
or disabled
keys are specified, they'll be respected. E.g:
will result in the following
Notice that the second option is always checked (and cannot be unchecked) and the third option is not checkable.
type
string
checkbox
(required)
id
string
Unique ID that will be used to retrieve the value (required)
place
array
Specifies where (page and tab) this option will be rendered
title
string
Shows a heading to the left of the field
desc
string
Shows a description text (can have HTML)
choices
array
Kind of required, but will not render anything if no choices are provided. Can be an array of strings or an array of arrays with value
and label
keys. See above.