Checkbox inside Multifield Touch UI

Avatar

Avatar

tc94524330

Avatar

tc94524330

tc94524330

23-08-2016

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.

Replies

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

23-08-2016

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

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K
kautuk_sahni
Community Manager

24-08-2016

Hi

Check these git repo:- 

Link:- https://gist.github.com/nateyolles/e5eed811dc9c35961c23

//aemTouchCheckboxDialog

Link:- https://github.com/AdobeAtAdobe/aem-spa-example/blob/master/modules/application/jcr_root/apps/aaa/te...

 

It might help you.

Thanks and Regards

Kautuk Sahni

Avatar

Avatar

siddupatil

Avatar

siddupatil

siddupatil

19-07-2017

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