INSERT "FILENAME"
Placeholder | Replace With |
FILENAME | The file name and folder path of another HotDocs template
Include the folder path if the inserted template resides in a folder that is different from the main template. |
The INSERT instruction inserts a clause , a clause library, or a template into the document currently being assembled .
Templates can be inserted from any location, as long as you specify the correct folder path information.
The INSERT instruction differs from the ASSEMBLE instruction in that HotDocs immediately processes the INSERT instruction and inserts the template, clause, or clause library into the current document. If there are variables to be answered, HotDocs presents them before finishing the interview of the main document.
To create a simple INSERT instruction, you can click the INSERT Field button and insert the instruction directly in the template. However, if you want to insert a more complex instruction using conditional logic, you may need to use a Computation variable .
Often an organization’s documents include sections that are used frequently (boilerplate language), such as company letterhead or attorney information blocks. Rather than recreate these parts of a document each time you automate a template, you can save just the letterhead or the information block as its own template and then use an INSERT instruction to include it in the templates that require it. For example, let's say you have a specific attorney information block you use in pleadings. You would create a template that contains only the attorney information and then use the INSERT instruction to insert it:
«IF Attorney Information Required»
«INSERT "Attorney Information Block.docx"»
«END IF»
In text templates, if the inserted template contains unanswered variables, HotDocs asks these variables. After the inserted template is assembled, HotDocs finishes assembling the main template. In contrast, with form templates , HotDocs appends the inserted form template to the main form. Once it finishes assembling the main form, it then assembles the inserted form template.
Inserted text templates may have formatting that differs from the original template. Headers, footers, and margins can often be controlled more easily by using word processor section breaks.