Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

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

Avatar

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

Avatar

Correct answer by
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

Avatar

Correct answer by
Level 8

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