您好,我现在遇到一个问题。我想让复选框状态为:已选中,但我无法设置 defaultValue="value"
<channels jcr:primaryType="cq:Widget" fieldLabel="Channels"
defaultValue="Value" name="channels" options="/bin/sample/private/getJSON.json"
optionsValueField="Value" type="checkbox" xtype="selection">
我尝试这样做:Getting Default Checked Checkbox in CQ5
但这并没有解决问题。
最佳答案
这是我用来将复选框的默认状态设置为“已选中”的示例。记下 defaultValue="true"
<channels
jcr:primaryType="cq:Widget"
fieldLabel="Channels"
name="channels"
type="checkbox"
defaultValue="true"
xtype="selection"/>
关于adobe - 从 xtype 选择类型复选框中选择值 CQ5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17105886/