# Document Template

{% embed url="<https://www.loom.com/share/bf78ac44eddb4de5aedb41d974d474e9>" %}
Example - Setting up NDA Workflow
{% endembed %}

**Uploading a Contract Template**

If a ‘Third Party Paper’ workflow is being set up, ensure that the “Use document template” option is not enabled. Where an ‘Own Template’ workflow is being set up, click the “Use document template” switch.

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2FuYQ7HpDcftbmwZvf9mYA%2Fimage.png?alt=media&#x26;token=87c87b72-c5ca-4c68-89f8-877adc583ab0" alt=""><figcaption></figcaption></figure>

For the ‘Own Template’ workflow, upload your template by selecting the file using the “Browse” button or by dragging and dropping the file in the “Template upload” box.

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2Fb3G1Zq05L6p9X0y9SKNW%2Fimage.png?alt=media&#x26;token=550166d0-0d18-4708-bc33-4a1f45af916d" alt=""><figcaption></figcaption></figure>

The document is automatically opened for your viewing on the same page.

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2FFn6biuGdER4xBbHVOOtA%2Fimage.png?alt=media&#x26;token=56cd324b-2f47-4ccf-ad04-83a57699d2c0" alt=""><figcaption></figcaption></figure>

**Templating Fields**

Once the template is uploaded, you are able to insert fields such as counterparty, start date and end date into the document.

Suppose the field being automated is the counterparty name. Select the text relevant to the field to be automated, i.e. the counterparty name.

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2Fsa027AIDDFa9jdxOevf7%2Fimage.png?alt=media&#x26;token=e13e48c2-ee38-46c8-9190-2b94b45deaf4" alt=""><figcaption></figcaption></figure>

Right click to see the option to replace the selected text the relevant field.

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2Fr9LsPrHtAoQdoFhbUl8y%2Fimage.png?alt=media&#x26;token=9d3810c2-85fa-4f91-b05c-7bce9cf1f5cb" alt=""><figcaption></figcaption></figure>

Select the “Fields” option and the relevant field that is being automated, i.e. “Counterparty”. The text will then be replaced with the template tag.

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2Flg3r8LcGAxkgRsGhDxve%2Fimage.png?alt=media&#x26;token=1c6c15c5-2f9f-4afe-b189-3238258eae39" alt=""><figcaption></figcaption></figure>

### Deleting Template Fields

The following video demonstrates how to delete templated fields:

{% embed url="<https://www.loom.com/share/b2ed2ee1ce0c4f70bb201d3262371a7f>" %}
