Doc from template issue

Certified Associate Developer

I have created template that contain Appian input structure ( ###sample### ) to replaced by the the smart service "MS Word 2007 Doc from Template" but it read some fields and give this  as in the figure in others

what is the issue ?

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to yusuf_saffar

    That can be difficult to control from MS Word. Add the # characters after completing all formatting and make sure the whole string has a uniform formatting.

  • 0
    Certified Lead Developer
    in reply to Stefan Helzle

    Also you have to completely turn off spelling and grammar check inside the Word settings, as these will actively mess up the replacement tags with barely any user interaction.

  • 0
    Certified Lead Developer
    in reply to yusuf_saffar

    Your solution is likely going to require you to completely remove the affected placeholders - that is, where you have "###CurrentDate###", etc, ERASE the entire string within the word doc (but remember where it was).  Do this to the others (though maybe not the one that's working corectly).  "Save As" to a new copy of the file, just in case.  Then completely turn off spelling and grammar check from the Word settings.  Then go back and re-type the placeholders from scratch in their proper locations.  Don't apply any formatting whatsoever that's different from the surrounding text.

    To check that the new additions are working correctly, unzip your .docx file and grab "document.xml" from the "\word" sub-folder, open it in a text editor, do a "find" on your replacement field names, and verify that there is no XML code in between the leading and trailing "###" tags and the replacement field name.  This is the cause behind what you're seeing in your screenshot.