Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

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

Avatar

Level 1

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.

1 Accepted Solution

Avatar

Correct answer by
Level 1

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)

     }

});

View solution in original post

3 Replies

Avatar

Level 10

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

Avatar

Community Advisor

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

Avatar

Correct answer by
Level 1

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)

     }

});