コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.
解決済み

Dynamic dropdown using two select fields & datasource

Avatar

Level 4

Hi All,

I'm working on a component where I need to populate the two dropdowns dynamically in dialog box. The second dropdown will change depending on the option selected in first field. Consider below structure under /content/dam/org/vehicles:

--bike
     --b1
     --b1
     --b1
--car
     --c1
     --c2
--truck
     --t1
     --t2

 So, my first dropdown will show the name of nodes/folder under vehicles but when any option is selected my second dropdown should populate with nodes/folder under that specific selected folder. For eg. if author selects car option in first dropdown, then second dropdown should show c1 & c2 likewise if bike is selected b1, b2 & b2.

I created a datasource which gives me name of resources under vehicles i.e bike, car & truck but not sure how to populate second dropdown.

Any suggestions on this would be helpful.

 

Regards,

Aamir

トピック

トピックはコミュニティのコンテンツの分類に役立ち、関連コンテンツを発見する可能性を広げます。

1 受け入れられたソリューション

Avatar

正解者
Community Advisor

Hi @sesmic ,

 

I found solution that will fit you in this useful article: https://medium.com/@arunpatidar26/dynamic-dropdown-in-aem-touch-ui-cc502022da24 

 

You will need to implement generic data source to fetch relevant options and add JS code to dialog clientlibrary.

 

Best regards,

Kostiantyn Diachenko.

Kostiantyn Diachenko


Check out AEM VLT Intellij plugin


元の投稿で解決策を見る

1 返信

Avatar

正解者
Community Advisor

Hi @sesmic ,

 

I found solution that will fit you in this useful article: https://medium.com/@arunpatidar26/dynamic-dropdown-in-aem-touch-ui-cc502022da24 

 

You will need to implement generic data source to fetch relevant options and add JS code to dialog clientlibrary.

 

Best regards,

Kostiantyn Diachenko.

Kostiantyn Diachenko


Check out AEM VLT Intellij plugin