Coral-checkbox default checked option

Avatar

Avatar

dibyajyotis2501

Avatar

dibyajyotis2501

dibyajyotis2501

03-01-2020

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.

checkbox coral touc ui granite path Touchui dialog

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

04-01-2020

Hi,

Just use the below value to mark the checkbox prechecked.

checked(Boolean)=true

Answers (1)

Answers (1)

Avatar

Avatar

Vish_dhaliwal

Employee

Avatar

Vish_dhaliwal

Employee

Vish_dhaliwal
Employee

03-01-2020

I think it is boolean, not booleanel. 

Have you tried:

uncheckedValue="{Boolean}false"

defaultChecked="{Boolean}true" 

Cheers,

Vishu