Page properties cq dialog sbumit or success event AEM 6.4 touch UI | Community
Skip to main content
imran_khan2
March 5, 2019
Solved

Page properties cq dialog sbumit or success event AEM 6.4 touch UI

  • March 5, 2019
  • 3 replies
  • 3124 views

Hi All,

I tried dialog-success and cq-dialog-submit event for page properties dialog submission in event AEM 6.4 touch UI.

But looks like it is not triggering this events for page properties. But, it is working for component dialog submission.

Thanks.

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 SmokeHs13

I ran into the same problem.  The page properties dialog does not work like other component dialogs.  After some digging I found that this worked for me:

$document.on('foundation-form-submitted', '.granite-form-saveactivator-form', function(ev, success) {

     if(success) {

          // form submission was successful

          // (after submit code here)

     }

});

3 replies

Gaurav-Behl
Level 10
March 5, 2019

Could you check if this js code is defined in a clientlib that has "categories" as "cq.authoring.dialog"?

arunpatidar
Community Advisor
Community Advisor
March 5, 2019

I think, your clientlibs are not getting loaded.

Please check below to see how to trigger events when you outside dialog.

How to display Saving when click the Create button if not finish?

Arun Patidar
SmokeHs13
SmokeHs13Accepted solution
June 10, 2019

I ran into the same problem.  The page properties dialog does not work like other component dialogs.  After some digging I found that this worked for me:

$document.on('foundation-form-submitted', '.granite-form-saveactivator-form', function(ev, success) {

     if(success) {

          // form submission was successful

          // (after submit code here)

     }

});