Templates and content controls

You can create your own templates and use existing templates, for example, letter templates and information templates. You can also retrieve and insert case, document, or contact information into a template or document, or to update registered document information.

Each template includes content controls. Content control represents an information field of a case, document, or contact (party); for example, (Case, Case handler) Name 1, (Document) Title, and so on. When you merge a template with a certain case or document, content controls extract the related values from the case or document. For example, (Case, Case handler) Name 1 can obtain value Ann, (Document) Title can obtain value Application form, and so on.


Create a new template

  1. Create a new Word document.
  2. Type the common text and add content controls.
  3. Click Files > Save As. The Save As dialog box is displayed.
  4. Select a location for your template.
  5. In the Save as type field, click > Word Template, and click Save.


Add content controls

In WorkZone for Office you can add content controls for the custom field types Date, Text, Decimal, and Integer.

  1. Select the Insert tab.
  2. In the Content properties group, click Case or Document to add content controls with case or document properties. Click Case contact or Document contact to add content controls with case party or document party properties.
Tip: Some content controls have two options:
  • If the property name is followed by (code), for example, Case handler > Contact type (code), it refers to the three-letter code identifying the case handler.
  • If the property name is followed by (text), for example, Case handler > Contact type (text), it refers to case handler's full name.

There are two additional options how you can benefit from content controls:

Insert multiple information for multiple parties with the same role (the repeating content functionality)

This is another way how you can use and benefit from content controls. Each case or document can have multiple parties with a specific role, for example, Sender or Recipient. If you want to extract information from multiple parties and insert it into a content control, you must use a repeating content control.

Important:

  • A party on the case or document, content control and repeating content control must have the same role in order to insert repeating information.
  • Apart from parties, you can also repeat text, images, and other types of information that is surrounded by a repeating content control.
  • For the correct operation, it is strongly recommended that you follow the instructions in the order listed.
  1. On the Insert tab, in the Content properties group, click the content control from the relevant group, and select a property you want to insert. For example, if you want to insert names of all parties with the Sender role, you must add content controls Name 1 and Name 2 with the Sender role.

  2. Use the left mouse button to select the content controls on the template.

  3. Click Document contact or Case contact, open the Repeating content menu and select the required role.
  4. To view information about the repeating content control, click it and view the information in the title.

  5. When you then merge, content controls will be populated with relevant information, each on a new row.


Merge case, document, and contact information

Prerequisite: Before merging case, document and contact information, content controls must be inserted into the template, and document information must be registered. See Registering document information.
  1. Open the relevant template.
  2. On the Home tab, click Merge > Merge To Document.
    Note: If you merge contact’s address information, which is protected, the address information will not be inserted into the document. This is true only for the content controls created in WorkZone for Office 2017 and later versions.


Remove case, document, and contact information

  1. On the Home tab, click Merge > Clear Merge.


Update registered document information

You can update registered document properties by editing the contents of content controls inserted into a template or document:

  • Document title
  • Letter date
  • Reply deadline

For example, if you change the document title in the Title content control, the document title will automatically be updated in the Document Registration pane.

Important: If you change the information in the Document Registration pane, you need to click Merge > Merge To Document to update the document.


Format of content control titles

From version 2014 R2, the format of content control titles has been changed to:

(ItemType,[Relation],[Type]) Label (format)

This means that content controls added in version 2014 R2 and later will be displayed in the new title format, whereas already existing content controls (added before version 2014 R2) will be displayed in the old format.


Replace Captia content controls

Captia content controls are no longer supported in WorkZone. To make templates with Captia content controls work, you need to replace the Captia content controls with WorkZone content controls. The instructions describe how to check if a template uses old content controls and how to replace them with new content controls.

Check for Captia content controls

  1. Make a copy of the .docx file.
  2. Change the extension to .zip (you may have to wrap the name of the file with " " or enable Windows to display extensions of known file types).
  3. Unzip the file, and then go to the /Word sub folder.
  4. Open the document.xml file using an XML editor, for example, Visual Studio Code or Notepad++.
  5. Headers and footers may also contain Captia content controls. Open the header*.xml and footer*.xml files where * refers to a number.

  6. Search for w:dataBinding w:prefixMappings.
  7. If the mapping is w:dataBinding w:prefixMappings="xmlns:ns0='Captia'", it is an old content control.
  8. Note the value of w:alias w:val for all Captia content controls. You can check for the value in the content control properties on Developer tab in Design mode in Word.

As the Captia content controls are different than those of WorkZone, you cannot just replace Captia with WorkZone. You need to replace the Captia content controls with WorkZone content controls.

Replace Captia content controls

  1. Open the template in Word with a newer version of the WorkZone for Outlook add-in.
  2. Delete the Captia content control and then add it again using the corresponding WorkZone content control.
Tip: It is easier to manage and work with content controls by enabling Design Mode on the Developer tab in Word. In Word, click File > Options, click Customize Ribbon, and select the Developer check box. After that close the Word Options dialog, click the Developer tab and enable Design Mode.