Dynamic Dialog in AEM Touch UI | Community
Skip to main content
sonala26363253
Level 2
October 16, 2015
Solved

Dynamic Dialog in AEM Touch UI

  • October 16, 2015
  • 4 replies
  • 2192 views

Hi All,

I am trying to create a component in AEM Touch UI with dyanmic dialog. I want to  add listeners in the dialog. I am not able to listen the event and make changes in the dialog according to listener. 

Can anyone please help or give a sample example on how to create a dynamic Touch UI dialog in AEM 6.0

Thank you so much!

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 Dominik_Lienema

If you want to react on a change in a select field, you have to listen to the event "selected". After catching, you can get the other fields in the dialog by using the fromElement method: https://docs.adobe.com/docs/en/aem/6-1/ref/coral-ui/docs/2.17.0-granite-004/widget.html#jsdocMethods.

4 replies

Dominik_Lienema
Dominik_LienemaAccepted solution
October 16, 2015

If you want to react on a change in a select field, you have to listen to the event "selected". After catching, you can get the other fields in the dialog by using the fromElement method: https://docs.adobe.com/docs/en/aem/6-1/ref/coral-ui/docs/2.17.0-granite-004/widget.html#jsdocMethods.

smacdonald2008
Level 10
October 16, 2015

See this article to learn how to use event handlers in Touch UI dialogs. 

https://helpx.adobe.com/experience-manager/using/creating-touchui-events.html

sonala26363253
Level 2
October 16, 2015

This is on Dialog ready event. But I want to make a text field visible on select of a check box. 

smacdonald2008
Level 10
October 16, 2015

You can use DOM events or JQuery events.