0

Populate word - Possible to put multiple bookmarks/hyperlinks within the template using the foreach array

From Erin
I am wondering if it is possible to put multiple bookmarks/hyperlinks within the template using the foreach array. See below

bookmark/hyperlink (indication)

  • <<foreach [cc in coverage_criteria]>><<[cc.indication]>>

<</foreach>>

links to indication further down in the document

<<[ccpa.indication]>><</foreach>>

5 comments

  • 0
    Avatar
    Roy Simmons

    Hi Erin,

    You will need to follow the array data structure and Foreach Syntax in the article link below:
    https://support.encodian.com/hc/en-gb/articles/360020415778-Repeating-Content

    You can repeat multiple bookmarks/Hyperlinks when you pass the array and it would look like the simple example below.

    • <<foreach [cc in coverage_criteria]>><<link[cc.Linkhere][cc.indication]>><<bookmark [cc.bookmark_reference here]>>
      <</foreach>>
  • 0
    Avatar
    Roy Simmons

    From Erin

    Here is the example of the bookmarks:

  • 0
    Avatar
    Roy Simmons

    Hi Erin,

    Could you please give more details about your issue?
    If its about bookmark character limit in word, please reference this Microsoft information: Do you know what the rules for acceptable bookmark names are? - Microsoft Community
    It suggests there's a 40 character limit and a quick count of the ones that are truncating for you seem to be above that limit. 

  • 0
    Avatar
    Erin Mullns

    Hi Roy,

    Ya that is the issue, I was just wondering if there was a way to extend that limit to match the hyperlink character count that links to the bookmark in the document.

    Condition(s) listed in policy (see coverage criteria for details)

    • <<foreach [cc in coverage_criteria]>><<link[cc.indication][cc.indication]>>

    <</foreach>>

    Coverage Criteria

    <<foreach [ccpa in coverage_criteria_pa]>> 
    <<bookmark [ccpa.indication]>><<[ccpa.indication]>><</bookmark>>

     

  • 0
    Avatar
    Roy Simmons

    Hi Erin,

    This is a Microsoft Word limitation as all formatting is managed within the Word template itself. Unless there is a manual method to increase the 40-character limit for bookmark naming, this limitation is inherent to Microsoft Word's design.

    The Encodian action simply adheres to the settings and limitations defined by Word.

    Please let us know if you have any other questions.

Please sign in to leave a comment.