When there is conditional logic in a template which removes or adds text, then some of the Word constructs such as Word fields (like page numbers and other fields) are not updated automatically. Normally user intervention is required in order to get Word to update the fields (i.e. select the entire document and press F9). The same applies to the Word Table of Contents.
If you would like XpressDox to perform the updating of fields after merging a template (instead of the user having to do it manually), place the following command in the template:
«UpdateFields(Yes)»