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

Document Generation repeated images from JSON array only showing first image

New Here ,
May 07, 2025 May 07, 2025

Inside a Word template file I am trying to iterate through a JSON array to show property images. I am experiencing a glitch where the placeholder image is being replaced, but it is not looping through each image; it is repeating the first image in the array.

 

I have the following code set in the Alt Text of the placeholder image:

{
"location-path": "url",
"image-props": {
"alt-text": "Property Photos"
}
}

 

In the template file I have:

 

{% repeating-section SubjectProperty.PropertyPhotos %}

{{ url }}

CRYSTAL36873235pfp8_0-1746646299206.png

{% end-section %}

 

I added the url variable inside the loop just to confirm it is looping through the array. As you can see, it is only showing the first image in the array, while the urls are correct.

 

This is the output:

 

Screenshot 2025-05-07 at 11.53.39 AM.png

I have scoured forums and followed different examples advised to no avail. Any help would be greatly appreciated!

TOPICS
Bug , Document Generation API
30
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
no replies

Have something to add?

Join the conversation
Resources