how to pass values between two different dialogs in AEM component ? | Community
Skip to main content
December 16, 2024
Question

how to pass values between two different dialogs in AEM component ?

  • December 16, 2024
  • 1 reply
  • 534 views

Please suggest your solution if i want to load the multifield authored value from one component dialog into multiselect value of another component dialog dynamically ?

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

1 reply

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
December 26, 2024

Hi, 

 

This is not an easy requirement to fulfill because it goes against the nature of how the components work. Ideally, you should avoid such situations. If you need to share data between components, extract the common data and place it in a shared, accessible location, such as a Content Fragment, ACS List, etc. You can learn more here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sharing-data-between-components/td-p/593200 https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/finest-way-to-exchange-data-between-aem-components/m-p/215859

 

However, if you really need to do this, you could explore ACS Commons Shared Properties: https://www.bounteous.com/insights/2016/12/15/aem-shared-content-and-component-properties/ or add JavaScript to your dialog to request information from another dialog and inject it into the HTML dynamically. You can learn more here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-access-to-global-values-from-dialog-clientlib/m-p/392872.

 

Hope this helps

Esteban Bustamante