Forum Discussion
Dynamic Pages in Mail Merge
- Jun 28, 2026
Yes Absolutely but here is main point you should understand it first ,Word can not toggle whole pages itself but an If field paired with include text gets you there. Save page A and Page B as separate documents so the images and layout stay intact, add a column like Packet type A and B to your data source, then in the merge doc press ALT+F9 and set up a conditional that checks that column and pulls in the matching file. Keeping each page in its own file is what worked for me, since images get unpredictable when you cram both pages into one IF field. Built and proof each page on its own first, then wire up the merge last.
Include text worked for me. I did find that none of the previews in the Word merge tool worked unless I went to that individual record, selected all, then pressed F9. And had to do that on every record, but when printing to PDF (which is what I actually need), they all seem to work.
{ IF "{ MERGEFIELD TestField}" = "A" { INCLUDETEXT "c:\\mypath\\myfileA.docx" } { INCLUDETEXT "c:\\mypath\\myfileB.docx" } }
Thanks!