Expand my Community achievements bar.

Checkbox inside Multifield Touch UI

Avatar

Level 4

Hi,

I am using AEM 6.1 SP1. 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. Because of brackets and quotes, even while trying to data-sly-test it is giving me unable to scan input error.

Please reply with thoughts.

3 Replies

Avatar

Level 10

To get a checkbox working in a Multifield - you can code against the Granite APIs as we do in this article: 

https://helpx.adobe.com/experience-manager/using/htl_multifield.html

IN this article - we are coding a nested Multi-field:

CUI.Multifield = new Class

But instead of a multifield - code a checkbox so it appears in the multi-field dialog.  

Here is another artilce that will help you to code with Granite APIs in a Touch UI dialog:

http://experience-aem.blogspot.ca/2015/02/aem-6-sp2-touch-ui-multi-field-component.html

( i cannot find an example of using a checkbox in a MF - however - these two articles should show you how to code with the granite APIs in a touch ui dialog.) 

Avatar

Level 2

Facing same issue.Please let me know if there is workaround.