Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Conditional show / hide of fields in AEM 6 dialogs

Avatar

Level 2

Hello friends,

I am building a relatively straight-forward AEM component with a simple authoring dialog. At the top of my dialog is a select field. I want certain fields in my dialog to disappear when this select field is set to a specific item.

I have studied the implementation of the Foundation Carousel component, which uses the cq-dialog-dropdown-showhide-target attribute, which is fine, but isn't quite the logic I am looking for. The logic used there is:

show this field if the select is equal to X

Whereas I am trying to implement:

hide this field if the select is equal to X, Y or Z, otherwise show it

Has anyone else had trouble implementing this kind of logic in their dialogs?

Thank you in advance!

Dave

1 Accepted Solution

Avatar

Correct answer by
Level 8

DarveLtd wrote...

Has anyone else had trouble implementing this kind of logic in their dialogs?

Have you attempted something and it did not work, or are you looking for more general information? 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 8

DarveLtd wrote...

Has anyone else had trouble implementing this kind of logic in their dialogs?

Have you attempted something and it did not work, or are you looking for more general information?