Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

Dynamic Dialog in AEM Touch UI

Avatar

Level 2

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!

1 Accepted Solution

Avatar

Correct answer by
Level 1

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.

View solution in original post

4 Replies

Avatar

Correct answer by
Level 1

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.

Avatar

Level 2

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

Avatar

Level 10

You can use DOM events or JQuery events.