# How to add a photo into a form

> Learn how to add a photo into a form in ServiceM8.

This lesson will show you how to attach a photo into your form.

## Go to Settings

![Go to Settings](/images/006-811-310-72193c84-fb68-41eb-acbc-e0affbb757bc.png)

## Click Forms

![Click Forms](/images/006-811-312-3c4210b0-fcbe-47ec-b6e7-b9e5e081c39d.png)

## In the Forms page, select a form and click Open Form to modify it

![In the Forms page, select a form and click Open Form to modify it](/images/006-811-314-ff837b07-79f6-4a77-9d10-4f4dbbf9d304.png)

## Add question as Photo

![Add question as Photo](/images/006-811-316-20ce665f-9a8a-4381-9887-89aae33605ac.png)

1\. Click **New Question**

2\. Name the question

3\. Click the **Question Type** drop-down list, select **Photo**

4\. You can make this question as mandatory by ticking **Mandatory**, once finished click **Save**

## Now, access the Form from the app

![Now, access the Form from the app ](/images/006-811-318-5f95dc9f-5923-40e4-8557-881ffdc94421.png)

You can now take a photo or grab an existing photo from the job diary to be attached in the form.

## The result can be viewed from the diary as shown below

![The result can be viewed from the diary as shown below](/images/006-811-320-e0241c49-bdbb-4287-98df-673505574804.png)

## If you wish to link the form's photo into the document template simply use any of its field codes as shown below:

![If you wish to link the form's photo into the document template simply use any of its field codes as shown below:](/images/006-811-323-e4970a38-a765-4258-8059-ffa045fa0cd2.png)

Determine the size of the photo that you would like to appear into your document template.

Small - Use this field "image\_form\_**x**\_small"

Medium - Use this field "image\_form\_**x**\_medium"

Large - Use this field "image\_form\_**x**\_large"

_**Note**_: "**x**" is the question name that you used in the form, for this example, it's "receipt".

### In your document template, copy and paste the field name and select it

![In your document template, copy and paste the field name and select it](/images/006-811-327-e3ea3a5d-5170-4bf9-8a8f-723b6676e007.png)

### Go to Insert > Quick Parts > Field > MergeField and enter or copy and paste the form's field code from the form. Click Save.

![Go to Insert &gt; Quick Parts &gt; Field &gt; MergeField and enter or copy and paste the form's field code from the form. Click Save.](/images/006-811-330-b7da24ad-993b-46e2-b515-b31d08c4346f.png)

### Once done that, it should changed the field name into this.

![Once done that, it should changed the field name into this.](/images/006-811-335-6566cdaa-8b71-46ee-ac80-c42980080824.png)

Save the document template and you are done! To learn more on how you can link your form to a document template, [**click here**](/help-center/servicem8-add-ons/forms/forms-how-to-link-the-contract-variation-form-to-the-contract-variation-document-template).

### Sample Output

![Sample Output](/images/006-811-339-943d29d3-f5a0-409e-86f5-e80cbe5d1ca3.png)
