Description

Creates a checkbox boolean

Usage

as element:
<content:boolean
       label="{string}"
       field="{string}"
       [true-value="{string}"]
       [false-value="{string}"]>
</content:boolean>

Parameters

ParamTypeDetails
labelstringThe label for the textarea
fieldstringThe name of the field.
true-value (optional)stringThe value to use when true, (default: true)
false-value (optional)stringThe value use when false, (default: false)

Example

Source

<h3 id="example_stacked">Stacked</h3>
<content:form styling="form-stacked">
    <content:boolean label="Test" field="test"></content:boolean>
</content:form>

Result

Result