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

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

  • March 5, 2019
  • 3 replies
  • 3119 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

SmokeHs13
SmokeHs13Accepted solution
New Participant
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)

     }

});

arunpatidar
New Participant
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
Gaurav-Behl
New Participant
March 5, 2019

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