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

Learn more

View all

Sign in to view all badges

AEM 6.4 – Toggle dialog fields based on dropdown selection - Doesn’t work for multiple values

Level 4
Level 4

In AEM 6.4, we could implement toggling of dialog fields based on the dropdown selection by adding granite:data node and granite:class. But this works only for single value. How to make it work for multiple values. For example, if a dropdown has three values [x, y, z] then I would like to show "text1" if we select x OR y and would like to show "text2" if we select z. I have tried making showhidetargetvalue to String[] with multiple values [x, y], but it didn’t work. Any reference will be helpful.

0 Replies