
Setting the Assembled Document's Title and Filename
You can choose the title and filename of your assembled document by using a computation. By default, HotDocs assembles documents using the template name as the assembled document and filename. For example, the template “Standard Letter” by default assembles documents as “Standard Letter.docx”. Using a computation, you can generate a custom filename for the assembled document, such as “Dan Smith’s letter to Mary Jones 11th November.docx”.
Set the assembled document's title and filename
- Open Component Studio.
- From the Component Studio ribbon, click New; then under Other Components, select Computation.
- Type a Name for the computation; then click the Result Type drop-down list, and select Text.
- Click OK. The Computation Editor then appears.
- Edit any properties you want in the Script, Behavior, and Notes tabs.
- Use the Script tab to create the script for your computation.
- When you finish, click Save.
- In Workspace Explorer, select your template; then click Template Properties.
- In the Assembly Behavior tab, check Use a computation.
- Select your text computation from the drop-down menu.
- Click OK.
Text computations used to generate an assembled document's title and filename cannot contain parameters.