Detect on load of component dialog or page properties - AEM 6.4 | Community
Skip to main content
Level 2
April 9, 2019
Solved

Detect on load of component dialog or page properties - AEM 6.4

  • April 9, 2019
  • 1 reply
  • 3474 views

Hi All,

I am using the below js function to perform certain logic during on load of component dialog and page properties.

$(document).on("foundation-contentloaded", function (e) {

//some logic here

});

I need to do different logic on load of page properties and on load of component dialog.

If i use

$document.on("dialog-ready", function () {

});

then i am able to perform the logic for on load of component dialog.

How can i find out if it is on load of page properties?

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 Hemant_arora

Search for the form element with id "cq-sites-properties-form" and you should be able to determine the page properties dialog

1 reply

Hemant_arora
Hemant_aroraAccepted solution
Level 8
April 9, 2019

Search for the form element with id "cq-sites-properties-form" and you should be able to determine the page properties dialog