In AEM Forms drop down | Community
Skip to main content
New Participant
January 10, 2024
Solved

In AEM Forms drop down

  • January 10, 2024
  • 3 replies
  • 1290 views

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 ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Vijay_Katoch
New Participant
January 12, 2024

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.

arunpatidar
New Participant
January 10, 2024
New Participant
January 10, 2024

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

arunpatidar
New Participant
January 11, 2024

HI @pratikshah 
Thanks, I have moved your query to dedicated AEM Forms community

 

Arun Patidar
narendragandhi
New Participant
January 10, 2024

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-authoring/rule-editor.html?lang=en

 

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

 

New Participant
January 10, 2024

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