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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
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.

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now