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

Avatar

Avatar
Give Back 10
Level 3
karanmahi
Level 3

Likes

15 likes

Total Posts

73 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile

Avatar
Give Back 10
Level 3
karanmahi
Level 3

Likes

15 likes

Total Posts

73 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
karanmahi
Level 3

25-02-2019

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.