Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Enable /disable the HTML component based on the value of Feature Flag from Adobe Target


Level 4

Hi All,

I have  a requirement to show/ hide the HTML content on the page based on the feature flag value returned from the Adobe Target.


1.When the feature flag named "displayHTML" from Adobe Target is set to true , then the HTML, CSS , javascript present within the component gets rendered on the page and the flag value is set to false as default.


So, can anyone please help me out with any reference or ideas inorder to achieve this implementation.


Thanks in Advance!

2 Replies


Community Advisor


I think this can be done using front end code.

YOu always hide that component and when the target value is displayHTML true, you simply show it. This is the main idea. 

How to do, it is based on your implementation.

Arun Patidar


Level 4

Hi @arunpatidar ,

Thanks for your response!

I would like to know about how the value of feature flag from Adobe Target will be integrated with AEM HTML component .Please advise on it .