How to get alternative text for multifield component ? | Community
Skip to main content
keshava219
November 15, 2022
Solved

How to get alternative text for multifield component ?

  • November 15, 2022
  • 1 reply
  • 712 views

I was trying to get alternative text for image asset from DAM Dynamically, In dialog we have multifield component should be use. by adding a checkbox like core image component

 

 

Its not working for multifield component.

 

 

 

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 arunpatidar

Hi,

It does not work automatically ,

You need to write a logic to fetch the Alt text from DAM for selected asset

and same logic has to be written in HTL Model.

 

Please check Core image component model implementation.

https://github.com/adobe/aem-core-wcm-components/blob/07dad2a91cbcfc58ae8d816bbce5964fc9b9355e/content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/editor/js/image.js#L103 

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
November 15, 2022

Hi,

It does not work automatically ,

You need to write a logic to fetch the Alt text from DAM for selected asset

and same logic has to be written in HTL Model.

 

Please check Core image component model implementation.

https://github.com/adobe/aem-core-wcm-components/blob/07dad2a91cbcfc58ae8d816bbce5964fc9b9355e/content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/editor/js/image.js#L103 

Arun Patidar