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
SOLVED

In Dialog dynamic dropdown for multiple generic list in acs common

Avatar

Level 7

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%20gen....

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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-...

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

 

Hope this helps.



Esteban Bustamante

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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-...

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

 

Hope this helps.



Esteban Bustamante