Hi,
I am using AEM 6.2. I am trying to develop touch ui for the components. I am facing problem with checkbox in the multifield. The sling:resourceType for checkbox i am using is "granite/ui/components/foundation/form/checkbox", gave value = true.
When i looked in to the page data in CRXDE, the field is saving like this "checkss":["true"],
Always checkbox value is getting saved inside another square bracket. I am not sure how to avoid that.
Please reply with thoughts.
Solved! Go to Solution.
Views
Replies
Total Likes
Added deleteHint="{Boolean}false to dialog now value is stored in JCR - "isOpenInNewWindow": "true",
<isOpenInNewWindow
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/checkbox"
fieldLabel="Open In New Window"
name="./isOpenInNewWindow"
text="Open In New Window"
checked="{Boolean}false"
value="{Boolean}true"
deleteHint="{Boolean}false"/>
Views
Replies
Total Likes
Hi siddupatil,
<fieldName
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/checkbox"
name="./checkbox"
text="open in new tab"
value="true"/>
Verify the checkbox by checking, saving dialog and reopening dialog again.
For Reference, follow below links:
[1] Adobe AEM Commons
[2] acs-aem-commons/touchui-composite-multifield-nodestore.js at master · Adobe-Consulting-Services/acs-...
Thank You,
Techaspect Solutions.
Views
Replies
Total Likes
Added deleteHint="{Boolean}false to dialog now value is stored in JCR - "isOpenInNewWindow": "true",
<isOpenInNewWindow
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/checkbox"
fieldLabel="Open In New Window"
name="./isOpenInNewWindow"
text="Open In New Window"
checked="{Boolean}false"
value="{Boolean}true"
deleteHint="{Boolean}false"/>
Views
Replies
Total Likes
Views
Likes
Replies