---
title: "form.fill: Fill in form fields — PDF kit command — Kition"
description: "Set several fields at once (one undo step). values maps field names (from form.listFields) to: a string for text fields, combo boxes and radio groups (an option), true/false for check boxes, an array of strings for multi-select lists. Appearances are regenerated so every viewer shows the values."
canonical: "https://developer.kition.ai/docs/kits/pdf/commands/form.fill"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/pdf/commands/form.fill](https://developer.kition.ai/docs/kits/pdf/commands/form.fill)

# form.fill

**Fill in form fields.** Set several fields at once (one undo step). values maps field names (from form.listFields) to: a string for text fields, combo boxes and radio groups (an option), true/false for check boxes, an array of strings for multi-select lists. Appearances are regenerated so every viewer shows the values.

- Kit: PDF 0.1.0 (.pdf); reference: [PDF kit commands](https://developer.kition.ai/docs/kits/pdf.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `values` | `object` | yes | Field name → value. |

## Call through pdf_run

```text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "form.fill", "params": { "values": <object> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. pdf_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "values": {
      "additionalProperties": true,
      "description": "Field name → value.",
      "type": "object"
    }
  },
  "required": [
    "values"
  ],
  "type": "object"
}
```

Generated from the command list of @kition/pdf-darwin-arm64@0.1.0 and the kit itself (pdf_commands through @kition/cli@0.1.1, built from KitionAI/kition-pdf@b0d2725).
