> ## Documentation Index
> Fetch the complete documentation index at: https://docs.declarativeforms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Capture a photo

If you have not created a form before, start with [Create a form](/getting-started/create-a-form).

```yaml form.yaml theme={null}
version: 1
title: "Document photo"
description: "A simple form that captures a photo with the rear camera."

sections:
  - id: section_1
    title: "Document details"
    fields:
      - id: reference_number
        type: short_text
        label: "Reference number"
        validators:
          - required

      - id: document_photo
        type: camera
        label: "Document photo"
        facing_mode: rear
        validators:
          - required

    next: done
```
