내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Populate second drop-down on the basis of value selected in First Dropdown

Avatar

Level 2

I've requirement to populate second drop down on the basis of value selected in first dropdown.

The catch here is list for both the drop-down is dynamic, I've to fetch it from back-end.

I need to implement this in AEM component.

Kindly suggest @arunpatidar  @VeenaVikraman @Theo_Pendle 

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 1

As @arunpatidar  mentioned, you should use the json and fill the drop down list.

You can get help of this page as well.
https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/coral-ui/c... .
This Dynamic drop down List will not save the previous selected value by reopening the dialog box. If you want to save it you should use “.selecteditem” as you see in the link which I attached.

 

원본 게시물의 솔루션 보기

4 답변 개

Avatar

Community Advisor

You can create the first dropdown as dynamic based on datasource. Second dropdown you have to populate based on on select event of option of first dropdown.

 

Long back I created a POC solution where second dropdown populated with the children pages based on selected page in first dropdown(pathbrowser in my example)

https://github.com/arunpatidar02/aem63app-repo/blob/master/js/dynamic-dropdown.js

 

@HalehHaerian  could you please guide here as you adapted this solution for dropdowns.

Arun Patidar

AEM LinksLinkedIn

Avatar

정확한 답변 작성자:
Level 1

As @arunpatidar  mentioned, you should use the json and fill the drop down list.

You can get help of this page as well.
https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/coral-ui/c... .
This Dynamic drop down List will not save the previous selected value by reopening the dialog box. If you want to save it you should use “.selecteditem” as you see in the link which I attached.

 

Avatar

Community Advisor
Hey sorry. I was away for somedays. Did this sort out for you ?

Avatar

Level 2
Yeah @VeenaVikraman , the approached which Arun suggested worked for me.