Having trouble with checked = "true" property with pages created from Editable Templates | Community
Skip to main content
Level 4
February 4, 2022
Solved

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

  • February 4, 2022
  • 2 replies
  • 2413 views

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 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DEBAL_DAS

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

 

 

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.

 

2 replies

DEBAL_DAS
DEBAL_DASAccepted solution
New Member
February 4, 2022

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

 

 

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.

 

Debal Das, Senior AEM Consultant
Sanjay_Bangar
Community Advisor
Community Advisor
February 5, 2022

Hi @shibani06 ,

           You need to used both the property checked and unchecked.

 

Kr,

Sanjay

 

SHIBANI06Author
Level 4
February 8, 2022

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?

Sanjay_Bangar
Community Advisor
Community Advisor
February 8, 2022

Yes, this is default behaviour.