Match Opening Instructions with Closing Instructions

Click here if you are using WordPerfect and the HotDocs Navigation toolbar doesn't appear in your template.

Every IF, REPEAT, and SPAN instruction inserted in a template must include an END IF, END REPEAT, or END SPAN instruction. Without both of these instructions, you will receive an error when you attempt to assemble a document. (The one exception is a repeated row in a table. See Use a Word Processor Table to Display a List.) However, sometimes during the course of editing a template, you may inadvertently delete or move part of the instruction. Doing so will cause errors when you attempt to assemble the document. To troubleshoot errors like this, you can have HotDocs match the different parts of the instruction. Likewise, if you have an intricate section of nested instructions, you can pair these different parts of the instruction.

To match opening instructions with their closing instructions

  1. Open the template for editing. (See Edit a Template.)
  2. Place the cursor inside either the opening instruction or the closing instruction. For example, if you're trying to find the opening instruction of a REPEAT, place your cursor in the END REPEAT instruction.
  3. Click the Match Fields button. HotDocs moves your cursor to the corresponding instruction.

When editing instructions in a computation script, you can place your cursor in either the opening or closing instruction and press Ctrl+M. This will move your cursor to the corresponding instruction.

If you're using Microsoft Word, you can also match fields by clicking on the HotDocs drop-down menu in the HotDocs toolbar and choosing Match Fields.