In Dialog dynamic dropdown for multiple generic list in acs common | Community
Skip to main content
Level 6
September 28, 2023
Solved

In Dialog dynamic dropdown for multiple generic list in acs common

  • September 28, 2023
  • 1 reply
  • 1199 views

I have two dropdown
1st dropdown - Alpha, Beta, Gamma as a dropdown option in dialog.

 

2nd drop drown - Dynamically populating using generic list
if Alpha in 1st dropdown is chosen then ACS Common generic list (/etc/acs-commons/lists/alpha-list) data should be shown in drop down
if Beta is chosen then ACS Common generic list (/etc/acs-commons/lists/beta-list) data should be shown in drop down

Similarly if Gamma is chosen then ACS Common generic list (/etc/acs-commons/lists/gamma-list) data should be shown in drop down How can I achieve this.

 

I have followed below url and extracting single generic list using servlet and data population is working fine but confused about how to proceed for the above scenario
http://www.sgaemsolutions.com/2019/01/dynamically-populate-drop-down-values.html#:~:text=Using%20generic%20lists%2C%20if%20you,must%20have%20acs%20commons%20package.

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 EstebanBustamante

Please go through these links which explain and mostly achieve your requirements:

 

https://adapttoaem.blogspot.com/2021/02/setting-dynamic-dropdownselect-value-in.html (If you follow this link you just need to add an AJAX call to your ACS List and would be it)

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/in-aem-based-on-selection-of-drop-down-show-some-hide-some/m-p/363710

https://levelup.gitconnected.com/aem-populate-a-drop-down-with-a-data-source-edafada90cc4 

 

Hope this helps.

1 reply

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
September 28, 2023
Esteban Bustamante