Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Multiple selection widgets dependency

Avatar

15-10-2015

Hi,

I would like to populate a second dropdown box (cq widget, eg xtype="selection") dynamically based on what was selected from the first dropdown via a component's dialog.xml.  How do I do this in AEM 6?

For example, I have a country dropdown box, when you select say, Australia, the second dropdown box would populate the states available for Australia.  This is only an example, but hope you know what I mean.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Ignite 5
Employee
Vishal_G_
Employee

Likes

5 likes

Total Posts

17 posts

Correct Reply

3 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Boost 5
Boost 3
View profile

Avatar
Ignite 5
Employee
Vishal_G_
Employee

Likes

5 likes

Total Posts

17 posts

Correct Reply

3 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Boost 5
Boost 3
View profile
Vishal_G_
Employee

15-10-2015

Hi Trang,

I hope you will find the following article helpful.

http://helpx.adobe.com/aem-forms/6/dynamically-populate-dropdowns.html

 

Regards,

~ Vishal

Answers (3)

Answers (3)

Avatar

15-10-2015

Sorry, I forgot to mention that this is the dropdown box used by the dialog.xml.  In other words, usage of the cq:Widget.  For example, I have a component, which have 2 dropdown boxes as stated above.