Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

Hide and Show in Content Fragments

Avatar

Level 4

Hi Team

 

I have one requirement where I have to create a Content Fragment Model which contains checkbox/dropdown based on the selection of value in the checkbox/dropdown there should be 2 fields which should be visible or hide.

 

Kindly advise how can I achieve this in content fragments.

 

Thanks in advance.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Prashardan 

 

There is no OOTB functionality to implement checkbox/dropdown show-hide functionality in content fragments. 

You need to write a custom script for the functionality similar to how we implement for AEM CQ dialog. Identify the JS client libraries associated with content fragments, and load your custom script based on that.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-blogs/show-hide-cq-dialog-...

 

Hope this helps

 

Thanks 

View solution in original post

3 Replies

Avatar

Level 10

Avatar

Correct answer by
Community Advisor

Hi @Prashardan 

 

There is no OOTB functionality to implement checkbox/dropdown show-hide functionality in content fragments. 

You need to write a custom script for the functionality similar to how we implement for AEM CQ dialog. Identify the JS client libraries associated with content fragments, and load your custom script based on that.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-blogs/show-hide-cq-dialog-...

 

Hope this helps

 

Thanks 

Avatar

Level 4

Thanks @PRATHYUSHA_VP  I was able able to achieve this requirement by writing custom js script.