Conditional show / hide of fields in AEM 6 dialogs | Community
Skip to main content
David_Woollard
Level 2
October 16, 2015
Solved

Conditional show / hide of fields in AEM 6 dialogs

  • October 16, 2015
  • 1 reply
  • 1379 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Scott_Brodersen

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? 

1 reply

Scott_Brodersen
Scott_BrodersenAccepted solution
Level 8
October 16, 2015

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?