How to add listeners in content fragments | Community
Skip to main content
June 19, 2019
Solved

How to add listeners in content fragments

  • June 19, 2019
  • 4 replies
  • 1755 views

We are using content fragments for few pages and now I have requirement to populate dropdown dynamically, would it be possible to write listeners in content fragments? . Not able to find docs, any pointers would be helpful

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by

If you need to populate this dynamically - why use content fragment in the first place. I would look at writing HTL/Sling Model component where you have a lot more control using code.

4 replies

Mayank_Gandhi
Adobe Employee
Adobe Employee
June 19, 2019

kautuksahni​ Looks like an AEM core post. Can you please move it to the concerned thread.

chaitu4uAuthor
June 21, 2019

any update on this ticket

Mayank_Gandhi
Adobe Employee
Adobe Employee
June 27, 2019

kautuk sahni​ Can you please move the thread to AEM.

Accepted solution
June 29, 2019

If you need to populate this dynamically - why use content fragment in the first place. I would look at writing HTL/Sling Model component where you have a lot more control using code.