Skip to main content
Level 3
Jun 25, 2024 12:54 PM UTC
Solved

Show/hide a textfield based on dropdown selection

I have a dialog with 3 dropdowns A,B&C. Either of these will be displayed based on another dropdown using wrapperClass. Each dropdowns has 3 options X,Y,Z. When Z is selected, a text field must be shown, otherwise it must be remained hidden. Any inputs?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
h_kataria
h_katariaAccepted solution
Community Advisor
Jun 25, 2024 1:12 PM UTC

If you are using acs commons in your project then use this https://adobe-consulting-services.github.io/acs-aem-commons/features/ui-widgets/show-hide-widgets/index.html and live happily ever after. Although I am curious why would you have 3 different dropdowns in your dialog with the same values.

4 replies

h_kataria
Community Advisor
h_katariaCommunity AdvisorAccepted solution
Community Advisor
Jun 25, 2024 1:12 PM UTC

If you are using acs commons in your project then use this https://adobe-consulting-services.github.io/acs-aem-commons/features/ui-widgets/show-hide-widgets/index.html and live happily ever after. Although I am curious why would you have 3 different dropdowns in your dialog with the same values.

Translate
Anudeep_Garnepudi
Community Advisor
Community Advisor
Jun 26, 2024 1:46 AM UTC