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.
I would save the content for Page A as an AutoText entry and for Page B as a separate entry.
Have something set in your data to distinguish these separate groups (i.e. a separate data point in the records).
Then use an IF field to test and display with an AUTOTEXT field for the result.
Something like:
{ IF "{MergeField Test }"="A" "{AutoText PageA }" "{AutoText PageB }" }