Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Dynamically populate the value of "textfield" z in "custom" tab in page properties when value is authored for custom property say x[textfield] in Basic tab.

Avatar

Level 9

Hi All,

Any thoughts/ code snippet/reference  on this will be really helpful.

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hi Scott/Kautuk,

Thank you for your reply.

Tried the below and its working ok.

function(comp) { var dlg = comp.findParentByType('dialog'); var sel = dlg.getField('./title').getValue(); var field = dlg.getField('./title1');field.setValue(sel);}

View solution in original post

6 Replies

Avatar

Level 9

Hi All,

Any thoughts here would be helpful.

Avatar

Level 10

The tab you are referring to belongs to the page property dialog. We do not have a helpx community article on this. The dicsussions we have in Helpx are for custom components, not for site admin dialogs. 

I will search within adobe to see if anyone had done this use case.

Avatar

Level 9

Hi Scott,

Thank you for your reply. Awaiting response from your end.

Avatar

Administrator

Hi 

I am not sure, if this would help you, but to create a custom property dialog, you would need to overlay it.

Link:- https://helpx.adobe.com/experience-manager/kb/CQ5PageProps.html

//If you had a page component /apps/<myapp>/components/pages/contentpage that hassling:resourceSuperType=/libs/foundation/components/page then you would copy/libs/foundation/components/page/dialog to /apps/<myapp>/components/pages/contentpage/ to make an overlaid dialog

Link:- https://github.com/Adobe-Marketing-Cloud/aem-authoring-extension-page-dialog

Link:-http://www.slideshare.net/martinischeery/aem-61-user-interface-customisation

 

Now question would be reduces to how to fill default values dynamically?

Link:- https://myprogressivelearning.wordpress.com/2015/01/21/setting-default-value-to-the-drop-down-of-dia...

Link:- http://experience-aem.blogspot.in/2015/02/aem-6-sp2-touch-ui-multi-field-component.html

if you want to fetch value from other component, then create a service/component that will use JCR API to fetch the information and later populate it.

 

Thanks and Regards

Kautuk Sahni 



Kautuk Sahni

Avatar

Correct answer by
Level 9

Hi Scott/Kautuk,

Thank you for your reply.

Tried the below and its working ok.

function(comp) { var dlg = comp.findParentByType('dialog'); var sel = dlg.getField('./title').getValue(); var field = dlg.getField('./title1');field.setValue(sel);}

Avatar

Level 1

How can we do the same in touchUI/AEM6.3?