Skip to main content
Participant
October 1, 2024
Question

Assistance with dynamic tags in Word Footnotes using Adobe Document Generation API

  • October 1, 2024
  • 0 replies
  • 144 views

Hello Adobe Community,

I am working on generating Word documents using the Adobe Document Generation API, and I've encountered an issue when trying to insert dynamic content into a footnote.

Problem:

In my Word template, I have inserted a footnote and used a dynamic tag ({{data.footnote}}) to populate the footnote content from my JSON data. However, when the document is generated, the tag itself ({{data.footnote}}) is not being replaced by the corresponding value from the JSON. Instead, the tag remains visible in the output, and no data is being injected.

What I've Tried:

  1. Tag in Body: When I place the same tag ({{data.footnote}}) in the main body of the document, it works correctly and the data from the JSON appears in the generated document.
  2. Tag in Footnote: When the tag is placed in the footnote, it does not get replaced with the JSON data.
  3. JSON Payload: The structure of my JSON data looks like this:
     

     

    {
    "data": {
    "footnote": "This is the dynamic footnote text."
    }
    }

    Question:

    Does the Adobe Document Generation API fully support dynamic content in Word footnotes? If so, is there any special formatting or workaround that needs to be applied to ensure that tags inside footnotes are processed correctly?

    Any guidance or suggestions on how to resolve this would be greatly appreciated!

    Thank you in advance for your help!

     

    { "data": { "footnote": "This is the dynamic footnote text." } }
This topic has been closed for replies.