Default checked state is not appearing for coral checkboxes
"granite/ui/components/coral/foundation/form/checkbox"
but it's working fine for granite foundation one. i.e. granite/ui/components/foundation/form/checkbox.
I've tried many ways (e.g. checked (string) property setting as true, defaultChecked / uncheckedValue etc.) but nothing is working. One thing noticed that, "checked" property has type ' booleanel ' while in JCR, only boolean is available;not the expression lang type. So,is it causing any issue?
Any pointers on this will be really helpful.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi,
Just use the below value to mark the checkbox prechecked.
checked(Boolean)=true
I think it is boolean, not booleanel.
Have you tried:
uncheckedValue="{Boolean}false"
defaultChecked="{Boolean}true"
Cheers,
Vishu
Views
Replies
Total Likes
Yes. tried that one too. But didn't work out. Also, it is booleanel for coral ; same thing is boolean for non-coral foundation. link s shared above.
Thanks
Views
Replies
Total Likes
This configuration pair woked for me in AEM 6.5. Thanks
Views
Replies
Total Likes
Hi,
Just use the below value to mark the checkbox prechecked.
checked(Boolean)=true
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
It should work for all the versions. Anyways I checked in Vanilla 6.4 version and it is working fine.
Find properties I used -
Image - https://github.com/arunpatidar02/aem63app-repo/blob/master/forum/images/checkbox.PNG
Views
Replies
Total Likes
Hi @arunpatidar This configuration works for cases when I drag and drop new instance of a component. But we have a case when the component is already authored and a new checkbox is being introduced to the dialog of existing authored component. In such cases it does not work. Can you please help on such cases ?
Hi @ayush_agarwal
YOu can check the specifications here?
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies