Skip to content

Checkbox

wcm/dialogs/components/checkbox

Description

Allows user choose check some option.

Properties

  • name - string (required)
    Form field name

  • label - string(required)
    Display label value

  • checkedByDefault - string
    Indicates if field should be checked by default. Default: “false”.

  • checkedValue - string
    Define what value will be saved in JCR if checkbox is checked. Default: “true” String

  • uncheckedValue - string
    Define what value will be saved in JCR if checkbox is NOT checked. Default: “false” String

  • description - string
    Display description value as a tooltip

Example

"isSlider": {
  "sling:resourceType": "wcm/dialogs/components/checkbox",
  "name": "isSlider",
  "label": "Display as a slider",
  "checkedByDefault": "true"
}