Finding and setting Mergefields in docx

Posted:
Wed May 10, 2023 11:24 pm
by kerner1000
I have Word templates that contain multiple MERGEFIELDs. I would like to find them and set a value in order to generate a document from the template. How can I do this?
Re: Finding and setting Mergefields in docx

Posted:
Sun May 14, 2023 10:03 am
by jason
Re: Finding and setting Mergefields in docx

Posted:
Tue May 16, 2023 12:37 am
by kerner1000
Hi Jason,
Many thanks for your response. I saw those examples already. But they are setting new Mergefields. I would like to find existing fields and replace them with actual data, for example: Look for "MERGEFIELD FIRST_NAME" -> find and replace with " John".
I don't understand from those examples how to do this.