Getting Default Checked Checkbox in CQ5

前端 未结 3 1876
隐瞒了意图╮
隐瞒了意图╮ 2020-12-31 04:36

I am trying to have a default checked checkbox on a component dialog when editing. Here are the properties on the field:

jcr:primaryType: widget
checked: tr         


        
3条回答
  •  粉色の甜心
    2020-12-31 04:54

    To set checkbox with a default value of checked and save the property as a Boolean property type in the JCR (rather than a String), use the following Classic UI settings:

    
    

    Or use the following settings in the Granite Touch UI:

    
    
    

    There's a detailed writeup and demo at http://www.nateyolles.com/blog/2015/11/aem-checkboxes-using-sling-post-servlet.

提交回复
热议问题