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

Avatar

Avatar

sanjays16398239

Avatar

sanjays16398239

sanjays16398239

23-01-2017

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.

Thanks
Sanjay

Replies

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K
kautuk_sahni
Community Manager

23-01-2017

Hi 

Please have a look at this Adobe Helpx article:- 

Link:- https://helpx.adobe.com/experience-manager/using/dialog_fields_servlets.html

// 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.

~kautuk

Avatar

Avatar

cqexplorer

Avatar

cqexplorer

cqexplorer

08-03-2021

 

Hey Kautuk,

 

I understand this is old link. https://helpx.adobe.com/experience-manager/using/dialog_fields_servlets.html is taking me to 404 page. Is there any updated link for this which has this helpx article?

 

Thanks in advance for your help.