Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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

Avatar

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.

Description:

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

Avatar

Community Advisor

Hi,

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

Avatar

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 .

 

Thanks.