how to call function on click of Create button in Touch UI AEM | Community
Skip to main content
manank71376227
Level 2
January 1, 2016
Solved

how to call function on click of Create button in Touch UI AEM

  • January 1, 2016
  • 3 replies
  • 6277 views

In classic UI, we have listeners with help of that i am able to call function. I am now changing the same to Touch UI. I am able to customize the page properties and added validation of blank field. But not sure about the function call using create button.

IN AEM Touch UI Page creation, I want to call function on click of "Create" button while setting properties. I am not sure about the way to call this.

Please suggest.

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 Lokesh_Shivalingaiah

As @Scott mentioned, use the button 'on' click event in JQuery, Refer [1] for the hint

[1] https://docs.adobe.com/docs/en/cq/5-6-1/touch-ui/granite-UI-cheatsheet.html

3 replies

smacdonald2008
Level 10
January 1, 2016

When using Touch UI, you have to use JQuery event handling to work with events. Granite APIs do not have  event handlers. See this article to get you pointed in the right direction:

http://scottsdigitalcommunity.blogspot.ca/2015/05/using-event-handlers-in-adobe.html

Hope this helps

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
January 3, 2016

As @Scott mentioned, use the button 'on' click event in JQuery, Refer [1] for the hint

[1] https://docs.adobe.com/docs/en/cq/5-6-1/touch-ui/granite-UI-cheatsheet.html

kautuk_sahni
Community Manager
Community Manager
January 4, 2016
Content backfill required
Kautuk Sahni