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

Avatar

Avatar

imran_khan2

Avatar

imran_khan2

imran_khan2

05-03-2019

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

SmokeHs13

Avatar

SmokeHs13

SmokeHs13

09-06-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)

     }

});

Answers (2)

Answers (2)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

05-03-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?

Avatar

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281
Gaurav-Behl
MVP

05-03-2019

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