Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Show/hide a textfield based on dropdown selection

Avatar

Level 4

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/in... and live happily ever after. Although I am curious why would you have 3 different dropdowns in your dialog with the same values.

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

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/in... and live happily ever after. Although I am curious why would you have 3 different dropdowns in your dialog with the same values.