---
title: "Invalid Field Type"
description: "A DOCX template conditional received a value that is not true or false. Send real booleans, not strings, in the document's data."
canonical: "https://signatureapi.com/docs/v1/errors/invalid-field-type"
source: "https://signatureapi.com/docs/v1/errors/invalid-field-type.md"
last_verified_api_version: "1.18.0"
last_modified: "2026-11-18T11:41:57Z"
---

# Invalid Field Type

A DOCX template conditional received a value that is not true or false. Send real booleans, not strings, in the document's data.

_Last verified against API version 1.18.0._

## What Happened

A conditional in a DOCX [document template](https://signatureapi.com/docs/api/resources/documents/templates) received a value that is not a boolean. In the `detail` property, `documents[0]` is the first item of the `documents` array.

## Example response

```json 422 Unprocessable Content (application/problem+json)
{
  "type": "https://signatureapi.com/docs/v1/errors/invalid-field-type",
  "title": "Invalid Field Type",
  "status": 422,
  "detail": "documents[0] contains a value that was expected to be a boolean, but it is not."
}
```

## How to Fix

- Send `true` or `false` as JSON booleans in the document's `data`, not the strings `"true"` or `"false"`.
- Find the conditional tags in the DOCX and check that each one gets a boolean in `data`.
- See [Conditionals](https://signatureapi.com/docs/api/resources/documents/templates#conditionals) for how template conditionals read their values.

Still stuck? [Contact support](https://signatureapi.com/support).
