Hi,
I have a template that contains a number of bookmarks to populate information from a system when the Word file is created. These bookmarks are formatted with a white font as it is being read by a software and not to be printed out if the file is printed.
The bookmarks contain information about the recepients address etc and I'm trying to figure out a way to warn the user if any of the "hidden" bookmarks ends up with an error.
I have tried to create a separate bookmark called "DokA_ID" which spans over all bookmarks with address information.
I then created a cross reference in the document with a suggested code that I found online:
Code:
{ IF { REF DokA_ID } = "" "Error! Bookmark not defined." }
That ended up displaying "REF" instead of the result of the bookmark, I then changed the field code to {REF DokA_ID} (removing the space between after/before the brackets. That ended up displaying "DokA_ID}". Finally I removed the space between "REF" and "DokA_ID" which ended up with the result being just blank - no output.
I then tried to rename the bookmark to "DokA_ID2" in order to test if the error message would be displayed but with no luck.
Does anyone have any suggestions on how to acheive this check with an IF statement? I can't use VBA as the templates are uploaded to a system that don't allow for VBA documents.
I have tried various IF statements previosly and never managed to get them to work.