Show hide dropdown

Avatar

Avatar

ArchanaVijayakumar

Avatar

ArchanaVijayakumar

ArchanaVijayakumar

30-06-2020

I have used two shoe hide drop-down in a component when I choose one of the drop-down value the show hide option also reflects on the other drop-down too...

 

Is there any solution.. Thanks in advance

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Varun_Shakya

MVP

Avatar

Varun_Shakya

MVP

Varun_Shakya
MVP

30-06-2020

Here you might have provided the same ''class"  property to targeted fields,

which you have used in Dropdown property(cq-dialog-dropdown-showhide-target)

 

Create different value for this(cq-dialog-dropdown-showhide-target) property for both the dropdowns and target the fields respectively.

Answers (1)

Answers (1)

Avatar

Avatar

Nirmal_Jose

MVP

Avatar

Nirmal_Jose

MVP

Nirmal_Jose
MVP

30-06-2020

You need to use different target div ID to keep it separate. Check out https://levelup.gitconnected.com/aem-conditionally-show-or-hide-fields-in-touchui-dialogs-with-coral..., a great article by Theo