Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to enable/disable a page property based on a checkbox or another page property

Avatar

Level 2

Hi,

I am looking to enable/disable a page property based on other page property. I tried to explore granite:rendercondition, but looks like an older implementation. Currently i am on AEM 6.5. Any leads on this are appreciated.

Thanks,

Raghu

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @raghud1980 

 

You would need to write your own handler to enable and disable a page properties dialog. If you observe the similar implementation is done in "Brand Slug" option present in OOB page properties dialog . It's enabling and disabling the field. You can refer to the similar approach and implement it based on the core component.

 

AvinashGupta01_0-1670262526672.png

 

 

https://github.com/adobe/aem-core-wcm-components/blob/main/content/src/content/jcr_root/apps/core/wc... 

 

Hope this helps.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @raghud1980 

 

You would need to write your own handler to enable and disable a page properties dialog. If you observe the similar implementation is done in "Brand Slug" option present in OOB page properties dialog . It's enabling and disabling the field. You can refer to the similar approach and implement it based on the core component.

 

AvinashGupta01_0-1670262526672.png

 

 

https://github.com/adobe/aem-core-wcm-components/blob/main/content/src/content/jcr_root/apps/core/wc... 

 

Hope this helps.