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

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?