Trouble making selection-xtype checkbox widget work the way I want
I want to have a series of checkboxes to let users select one or more social networks (e.g. Facebook, Twitter, and Google+). By default all three should be selected. If I define my widget as follows:
<socialWidgets jcr:primaryType="cq:Widget" xtype="selection" type="checkbox" options=".../myOptions.json" defaultValue="[facebook,twitter,googleplus]" value="[facebook,twitter,googleplus]" />
When all three items are deselected, rather than submitting a null/empty/blank value, the default value is submitted instead.
What am I doing wrong here?
Thanks.