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

SOLVED

How to dynamically populate the variation field in Experience Fragment Component?

Avatar

Level 2

Hi All,

 

Is there any way to dynamically display one Experience Fragment component from /content/experience-fragments based on the results we get by running a query?

Example: The query result gives fragment path :/content/experience-fragments/test-xf 

In the below screenshot , instead of choosing an XF from picker, the path should be pre-populated with the above fragment path (/content/experience-fragments/test-xf) .

 

sanjanas3080058_0-1584440399517.png

 

So here I need help to dynamically populate value in "Variation" Field in an Experience Fragment based on my query result. 

Can we overlay the OOTB js functionality?  or what is the best approach of achieving this?

 

@kautuk_sahni  @Arun_Patidar @Anonymous @Veena_Vikram 

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I created similar functionality just POC for the content fragment, you can try a similar approach

https://aemlab.blogspot.com/2018/09/aem-content-fragment-with-component.html

 

you need to clear the variation filed in XF and populate using javascript

 

View solution in original post

0 Replies

Avatar

Correct answer by
Community Advisor

I created similar functionality just POC for the content fragment, you can try a similar approach

https://aemlab.blogspot.com/2018/09/aem-content-fragment-with-component.html

 

you need to clear the variation filed in XF and populate using javascript