Expand my Community achievements bar.

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.

2 Replies

Avatar

Level 6

Avatar

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