Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

drop downs

Avatar

Former Community Member
how can I make one drop down effect the other drop down



I.E.



Order form: drop down for clothing vendor then the size drop down is limited only to the sizes available from that vendor
1 Reply

Avatar

Former Community Member
You can add script to the 'change' event in the first drop-down to repopulate the second drop-down with the items you need.



So in DropDownList1's 'change' event you'd add JavaScript code like this:



DropDownList2.clearItems();

DropDownList2.addItem("MyFirstItem");

DropDownList2.addItem("MySecondItem");



Filling in the 2nd list with whatever's appropriate based on what was selected in the first list.

--

SteveX

Adobe Systems