Expand my Community achievements bar.

SOLVED

In AEM Forms drop down

Avatar

Level 2

we have 2 drop down when we select value from 1st drop down it will decide the value of 2nd dropdown.

So how to do it ? 
1 way is using clientlibs but there is other way using the aem form rules any idea on that ?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor
7 Replies

Avatar

Community Advisor

Hi @pratikshah If you are referring to Adaptive forms then there is a rule editor available OOTB in AEM Forms - https://experienceleague.adobe.com/docs/experience-manager-65/content/forms/adaptive-forms-advanced-...

 

Please note that it's not included as part of AEM Sites and is a separate add-on.

 

Avatar

Level 2

hey @narendragandhi I saw that document but didnt got how it can be use full for drop down what would be better using rule editor or clientlibs

Avatar

Level 2

hey @arunpatidar looking for the adaptive forms rule editor how we can use and toggle or hide show 2nd drop down value.

Avatar

Correct answer by
Employee Advisor

Avatar

Community Advisor

You need to write the code to dynamically populate the second dropdown on the change or exit event of the first dropdown.

eg.:

Need to create the mapping like the first dropdown has the country and the second dropdown has the city for that country.

 

India > Mumbai, Delhi

Australia > Sydney, Melbourne

 

You can maintain this mapping in xml data or db.