Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Having trouble with checked = "true" property with pages created from Editable Templates

Avatar

Level 2

I want to have a checkbox checked by default on the page properties of a page created using editable template unless we go and uncheck it, and tried adding checked = {Boolean} true for the property,but this does not seem to be working for pages created from editable templates. The first time on opening page properties it appears checked but on adding a component to the page and then checking the page properties , it is back to its unchecked state.

Any help would be appreciated. 

Thank you in advance 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I have tried with below field entries and it's working for me -

 

DEBAL_DAS_0-1643989563585.png

 

I am using AEM 6.5 here and checkbox is able to retain 'checked' status after adding component on page also.

I have tried with we.retail editable template.

 

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

I have tried with below field entries and it's working for me -

 

DEBAL_DAS_0-1643989563585.png

 

I am using AEM 6.5 here and checkbox is able to retain 'checked' status after adding component on page also.

I have tried with we.retail editable template.

 

Avatar

Community Advisor

Hi @SHIBANI06 ,

           You need to used both the property checked and unchecked.

 

Kr,

Sanjay

 

Avatar

Level 2

Adding checked = true, uncheckedValue=false, cq:hideOnEdit = false, cq:showOnCreate = true worked, but whenever we create an Experience fragment using editable template, a variation gets created by default and the checkbox remains unchecked in this default master variation whereas if we now create a new variation, the checkbox is checked. 

Is this an expected behavior?

Avatar

Level 2

Is there a way to have the check box of the default master variation also enabled by default?

Avatar

Level 1

Hi @SHIBANI06 , were you able to fix this issue? I am also facing the same issue with experience fragment.