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. | Community
Skip to main content
Level 9
May 24, 2016
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.

  • May 24, 2016
  • 6 replies
  • 4036 views

Hi All,

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by askdctm

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);}

6 replies

askdctmAuthor
Level 9
May 24, 2016

Hi All,

Any thoughts here would be helpful.

smacdonald2008
Level 10
May 25, 2016

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.

askdctmAuthor
Level 9
May 25, 2016

Hi Scott,

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

kautuk_sahni
Community Manager
Community Manager
May 25, 2016

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-dialog-in-adobe-aem-cq5/

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
askdctmAuthorAccepted solution
Level 9
May 25, 2016

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);}

September 24, 2019

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