Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

cprogramkarthic
Level 2
Level 2

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?

1 Accepted Solution
Hemant_arora
Correct answer by
Level 8
Level 8

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

View solution in original post

1 Reply
Hemant_arora
Correct answer by
Level 8
Level 8

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

View solution in original post