Développer ma barre des réalisations de la Communauté.

Mark Solution

Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.

RÉSOLU

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 solution acceptée

Avatar

Réponse correcte par
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.

Voir la solution dans l'envoi d'origine

4 Replies

Avatar

Réponse correcte par
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 10

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

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.