fr:checkbox-input
component displays a single checkbox and by default stores a value of true
when selected and false
when deselected.xf:input
to a field of xs:boolean
type) in that the Checkbox Input displays the label right next to the checkbox.fr:checkbox-input
like a regular XForms controls. Example:xs:boolean
but doesn't have to.selected-value
: value to store when the checkbox is selected, by default true
deselected-value
: value to store when the checkbox is deselected, by default false
xf:select
in that it adds and removes the selected value (by default true
) into a space-separated list of tokens without affecting other tokens. With the following example, say the bound node initially contains:false
(or to the value set by deselected-value
) until the user selects then deselects the value again.