Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Dynamically set image source path/value in AEM form designer

New Here ,
Apr 27, 2021 Apr 27, 2021

Want to know how to dynamically call  the image source/path on certain conditions in form designer.

Currently I setup [image field] in the document. Wondering how I can use javascript to call / add the image into the image field .

 

I have tried to use the code below on [form:ready] 
this.value["#image"].href = "https://upload.wikimedia.org/wikipedia/commons/thumb/8/8f/SAP-Logo.svg/320px-SAP-Logo.svg.png"

 

But it didnt work 😞

Adobe Experience Manager - forms designer version : 6.5

 

My final goal is using XML data and javascript to dynamically change the path of the image. 

 

Hope someone have a solution/answer  for this question.

Thanks

 

TOPICS
Create PDFs , How to , JavaScript , PDF forms
589
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 27, 2021 Apr 27, 2021
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines