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

Is there a way to prepopulate a CQ dialog field with a pageproperty value when the page is created?

Level 3
Level 3

I have to pre fill  a property of the page in CQ dialog with the value of  page path. So, looking for ways to run a script only at the time of page creation to assign the property to the page.


Any help appreciated.


0 Replies


Please have a look at this Adobe Helpx article:- 


// Populating AEM Component Dialog fields using JSON data returned by Sling Servlets

On the same lines you can modify the code to adapt to your use-case.

I hope this would be of some help.


Level 2
Level 2

Hey Kautuk,


I understand this is old link. is taking me to 404 page. Is there any updated link for this which has this helpx article?


Thanks in advance for your help.