# Add Custom Fields to Legal Document

**GoAffPro** provides you with the option to add custom fields to the legal document.

To add custom fields to the legal document, go to the **Extras** section in the **Settings** tab of the GoAffPro admin panel.&#x20;

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FHQyzS0pc4hEIxECO2oZa%2Fimage.png?alt=media&#x26;token=0b000e29-5515-4f92-b490-7c58312da367" alt=""><figcaption><p>Settings > Extras</p></figcaption></figure>

Here, go to the Legal Documents section.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FpyvRQ4gwElrBjY6JsxL7%2Fimage.png?alt=media&#x26;token=1595d098-c697-4d3b-bbf4-d1c821285877" alt=""><figcaption><p>Legal Documents</p></figcaption></figure>

Now, click on **New Document**.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FDDnJq28YGW7yWh1WGM2u%2FScreenshot%202022-11-09%20191310.png?alt=media&#x26;token=77d2147f-d9c7-49c6-9cea-b66b19014557" alt=""><figcaption><p>Click on New Document</p></figcaption></figure>

This will open up the New Document section.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FouNUC7qinslwataZJwp3%2Fimage.png?alt=media&#x26;token=409e0046-92c3-409d-85ac-8aa10525bb34" alt=""><figcaption><p>New Document</p></figcaption></figure>

Here, set the title and content for the document.&#x20;

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FPEFEBMTSjEX2FowLMqUv%2FScreenshot%202022-11-09%20191525.png?alt=media&#x26;token=de61edc4-806e-41a8-bbf5-e1a891e9e0d4" alt=""><figcaption><p>Set the title &#x26; content for the document</p></figcaption></figure>

Next, click on **Add custom field**.&#x20;

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FDXF8mNdmFJ3LHsPrkBaw%2FScreenshot%202022-11-09%20191930.png?alt=media&#x26;token=8130735d-1733-4db7-b829-e7f1a04d962f" alt=""><figcaption><p>Click on Add custom field</p></figcaption></figure>

Here, set the field ID.

{% hint style="info" %}
The field ID should ideally be a single word set in lowercase. It should not include special characters or spaces.&#x20;
{% endhint %}

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FEU2UIDyEKpXQlffElC1i%2FScreenshot%202022-11-09%20192121.png?alt=media&#x26;token=5ac5db15-66df-4461-a89e-97c389a9454c" alt=""><figcaption><p>Set the field ID</p></figcaption></figure>

Now, set the label.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2F8wHs23LB3TQ7eVLMRTlO%2FScreenshot%202022-11-09%20192345.png?alt=media&#x26;token=652cad2a-541a-4d7e-ba83-3ec6779e4466" alt=""><figcaption><p>Set the label</p></figcaption></figure>

Next, select the field type.&#x20;

{% hint style="info" %}
You can set the field type as text input, phone number, text area, or signature.
{% endhint %}

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2F2gLYKeKf7t24E4H3U3kV%2FScreenshot%202022-11-09%20192603.png?alt=media&#x26;token=9823ab15-fa46-464d-b461-5e8fce1a3f44" alt=""><figcaption><p>Select the field type</p></figcaption></figure>

There are also options to set the field as required and adjust the field width.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FiZyd0DBQkoWJEuXG7Yab%2FScreenshot%202022-11-09%20192603.png?alt=media&#x26;token=a5067f0a-2e5b-4d9c-8fa2-2c7b23d5df3c" alt=""><figcaption><p>Set the field as required &#x26; adjust the field width</p></figcaption></figure>

After this, add the placeholder **{{id}}** to set the field's value in the legal document.&#x20;

{% hint style="info" %}
**For example**: If you set the field ID as: address, the id for it would be: {{address}}

Also, for signature fields, you will need to use the **{{{id}}}** (with three curly brackets).
{% endhint %}

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FdtiXyXfMjfziNKj5tEun%2FScreenshot%202022-11-09%20192908.png?alt=media&#x26;token=66682dc7-3df6-4955-80ac-204994209927" alt=""><figcaption><p>Add placeholder {{id}} to set the field's value in the document</p></figcaption></figure>

Finally, click on **Submit**.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FLrsx00YlRzEh8bftoAqI%2FScreenshot%202022-11-09%20192908.png?alt=media&#x26;token=dfca365e-bfde-4afe-bfa8-963390439c75" alt=""><figcaption><p>Click on Submit</p></figcaption></figure>

The legal document will get saved.&#x20;

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FVcFiSuVz89dL9Dvi0Dmj%2Fimage.png?alt=media&#x26;token=38a7870c-3d27-4960-b8c8-780379e5a301" alt=""><figcaption></figcaption></figure>

{% embed url="<https://www.youtube.com/watch?v=24sAXUWqMXs>" %}
Add Custom Fields to Legal Document
{% endembed %}
