When dialog is opened the checkbox should be selected by default.
Steps to achieve this in touch ui
- Create nt:unstructured node with sling:resourceType = granite/ui/components/foundation/form/checkbox
- Add defaultChecked property (boolean) true
- Add “uncheckedValue” property. Assign value to it that which should be saved on the node when checkbox is not checked.
- Add “value” property. The value of this property will be saved on the node when checkbox is selected.
Touch UI checkbox form field