Search > Merge: Not merging correctly with a DOCX file
If I perform an Advanced Search, select "Thank-you letters - print or email": ..chose my options (group by Contact, separator Comma) and run the merge, it's not filling in any of my merge codes in the DOCX:
- I triple-checked, all merge codes are typed in exactly as they are in Civi.
- I even tried using my doc with only a few merge codes, same issue.
- No difference if I output merge from Civi in DOCX vs PDF.
- Interestingly, the first time I did the merge everything filled in correctly except for the table at the bottom which groups contributions by "Comma", then all future merges done with this search don't merge correctly at all.
I'm guessing this is a bug with Civi, I tried the same thing on the demo and ran into the same problem with DOCX files.
Workaround: My workaround is to replicate my letter as a Message Template in Civi since the native template works with the fields 100% each time - the downside to this is the limitations of CKEditor4. It's a pain to insert page breaks, center paragraphs, etc, way too basic formatting options.