Overview
Mapping OneLaw and InfoSheet fields can be done in two ways: either by inserting merge fields or by using content controls. This article explains how to insert merge fields and map content controls when building templates and precedents in OneLaw. These tools connect your Microsoft Word document to Infosheet and system data, so the assembled document is complete and accurate. The steps below describe OneLaw-specific behaviour and do not cover general Microsoft Word training.
Who can do this
- System Administrators
- Template Administrators
Before you start
- Check you have Template Administrator access in Word.
- Ensure you have a base template or precedent open in Microsoft Word
- Ensure you understand the high-level difference between merge fields and content controls
- If you need to configure signature placeholders, see: Configure Signature Placeholders and Rules in a Precedent.
Signature placeholders use content controls but follow separate rules.
Steps
-
Insert merge fields
Use merge fields when you want OneLaw to insert fixed text, formatted values, date switches, or conditional IF logic into the assembled document.Access
OneLaw Templates tab > Merge Field Names
Result: A new Word document opens containing all available merge field names.
- OneLaw fields appear first, prefixed with OP.
- Attached Infosheet fields appear last, prefixed with the Infosheet name (for example, Conveyancing.)
Add merge fields to the document
- Copy the required merge field name.
- Paste it into your base template or precedent at the correct location.
Result: The merge field will populate during document assembly using data from Parties, Matters, and Infosheets.
Note: For more advanced merge field formatting - such as applying capitalisation or changing date formats - see Microsoft’s Format field results article for guidance.
-
Map content controls
Use content controls when you want data to appear in the assembled document but remain editable. Content controls insert Infosheet or OneLaw field values into an editable content control, but do not update Infosheets when edited.
Access
OneLaw Templates tab > Editor
Result: The XML Mapping pane opens on the right.
Use one of three supported mapping methods
Method 1: Drag a field into the document
Action:- Drag a field from the XML Mapping pane directly into the document.
Result: A new content control is inserted and automatically mapped in the document.
Method 2: Map a placeholder content control using “Map to Content Control”
Action:- Select the placeholder content control in the document.
- In the XML Mapping pane, right-click the required field.
- Select Map to Content Control.
Result: The placeholder content control becomes mapped to the selected field.
Method 3: Insert a new content control using “Insert Content Control”
Action:- Place the cursor where the control should be inserted.
- Right-click the required field in the XML Mapping pane.
- Select Insert Content Control, then choose the control type.
Result: A new content control of the required type is inserted and mapped to the selected field.
Note: Fixing a mapping mistake
If you map a field to the wrong content control, you don’t need to delete and recreate it.
Select the content control, then right-click the correct field in the XML Mapping pane and choose Map to Content Control.
This will remap the existing control to the correct field.
- Drag a field from the XML Mapping pane directly into the document.
-
After mapping a content control (optional)
After mapping, you can name the content control to make maintenance easier:- Select the mapped content control.
- Go to Developer tab > Select Properties.
Result: The Content Control Properties window opens. - Enter a meaningful name in the Title field.
- Click OK.
Naming can help with complex templates, repeated field type uses, and documents with conditional structures.
- Select the mapped content control.
Result
You have inserted merge fields and mapped content controls in your base template or precedent. These elements will populate correctly during document assembly and support either fixed or editable data, depending on the method you used.