---
title: "Text Input Place"
description: "Collect information from recipients during signing with text input fields"
canonical: "https://signatureapi.com/docs/api/resources/places/text-input"
source: "https://signatureapi.com/docs/api/resources/places/text-input.md"
last_verified_api_version: "1.18.1"
last_modified: "2026-11-18T11:48:11Z"
---

# Text Input Place

Collect information from recipients during signing with text input fields

_Last verified against API version 1.18.1._

A **text input place** marks a location in a document where a recipient types free-form text during the signing ceremony. These serve the same purpose as form fields in other e-signature platforms.

> **Note:** Text input places are only available in envelopes with sequential signing.

You can position text input places using either [placeholders](https://signatureapi.com/docs/api/resources/places/positioning#placeholders) or [fixed positions](https://signatureapi.com/docs/api/resources/places/positioning#fixed-positions).

## Hints and Prompts

Use `hint` and `prompt` to guide recipients while they fill out a text field.

- **`hint`**: A tooltip shown when the recipient hovers over or focuses on the field.
- **`prompt`**: Placeholder text displayed inside the field. It disappears when the recipient starts typing.

```json
{
  "hint": "Your 8-digit reference code",
  "prompt": "12345678"
}
```

During the signing ceremony, the field appears like this:

![A text input labeled Reference code during signing: the prompt 12345678 shows in grey inside the field and the hint Your 8-digit reference code appears in a tooltip above it](https://signatureapi.com/docs/images/text-input-guides.webp)

## Format Validation

The `format` property validates what the recipient can enter. You can use a predefined format or a custom regular expression.

### Predefined formats

| Value        | Description   |
| ------------ | ------------- |
| `email`      | Email address |
| `zipcode-us` | US ZIP code   |

> **Tip:** More predefined formats are coming. [Let us know](https://signatureapi.com/support) if you need a specific format.

### Custom regular expressions

Wrap a regular expression in forward slashes to define a custom format. For example, to require exactly 8 numeric digits:

```json
{
  "format": "/^[0-9]{8}$/"
}
```

### Format messages

Set `format_message` to show a custom message when the recipient's input does not match the required format.

```json
{
  "format": "/^[0-9]{8}$/",
  "format_message": "Must be exactly 8 numeric digits (0-9)"
}
```

During signing, the message is displayed like this:

![The same text input with 123 typed in and a red outline, and the error Must be exactly 8 numeric digits (0-9) shown below the field](https://signatureapi.com/docs/images/text-input-format-message.webp)

## Capturing Input

Set `capture_as` to store the value the recipient enters in the envelope's `captures` object. After the envelope is completed, you can retrieve the value using the key you specified.

## Size and Appearance

- **`width`**: The initial width of the field in points (1/72 inch). The field may expand beyond this width as the recipient types.
- **`font_size`**: The text size inside the field, in points. Must be between 6 and 12. Defaults to 12.

## Attributes

- `key` (`string`, required, 1 to 32 characters, pattern ^[a-z][a-z0-9_]*$)

  A unique identifier for a place within a [document](https://signatureapi.com/docs/api/resources/documents/object). Used to match a place to its position, either through a `[[place_key]]` [placeholder](https://signatureapi.com/docs/api/resources/places/positioning#placeholders) in the document or a [fixed position](https://signatureapi.com/docs/api/resources/places/positioning#fixed-positions) entry. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.

  Example: `"licensor_signs_here"`

- `type` (`string`, required)

  For a text input place, the value is `text_input`.

  Always `text_input`.

- `recipient_key` (`string`, required, 1 to 32 characters, pattern ^[a-z][a-z0-9_]*$)

  The key of the [recipient](https://signatureapi.com/docs/api/resources/recipients/object) assigned to this place. Must match the `key` of a recipient in the [envelope](https://signatureapi.com/docs/api/resources/envelopes/object)'s `recipients` array.

  Example: `"explorer"`

- `requirement` (`string`, optional, default: "required")

  Whether the recipient must complete this place before finishing their action. When set to `required`, the recipient cannot proceed without typing a value, checking the box or selecting an option, depending on the [place type](https://signatureapi.com/docs/api/resources/places/object#place-types). When set to `optional`, the recipient may skip it.

- `prompt` (`string | null`, optional, 1 to 100 characters)

  Placeholder text displayed inside the input field before the recipient types. Disappears when the recipient starts entering text. Set to `null` for no prompt.

  Learn more in [Hints and Prompts](https://signatureapi.com/docs/api/resources/places/text-input#hints-and-prompts).

  Example: `"John Doe"`

- `hint` (`string | null`, optional, 1 to 100 characters)

  A tooltip displayed to the recipient when they hover over or focus on the place. Use this to provide guidance about what to enter. Set to `null` for no hint.

  Learn more in [Hints and Prompts](https://signatureapi.com/docs/api/resources/places/text-input#hints-and-prompts).

  Example: `"Enter your full legal name"`

- `capture_as` (`string | null`, optional, 1 to 32 characters, pattern ^[a-z][a-z0-9_]*$)

  A key that stores the recipient's input in the envelope's `captures` object. When set, the value entered or selected by the recipient is saved under this key after the envelope is completed. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores. Set to `null` to disable capture.

  Example: `"customer_email"`

- `format` (`string | null`, optional)

  Specifies the validation to apply to the text input, such as requiring a specific format (e.g., email, US zipcode), a custom regular expression, or no validation at all.

  Learn more in [Format Validation](https://signatureapi.com/docs/api/resources/places/text-input#format-validation).

  `format` takes one of these forms:

  - **Predefined format**: a predefined format name

    (`string`)

    A predefined format that must match the input text.

    Values: `email`, `zipcode-us`

  - **Custom format**: a regular expression enclosed in `/`

    (`string`, 1 to 100 characters, pattern ^/.*?/$)

    A regular expression that must match the input text.

    Example: `"/^[a-z0-9]{1,10}$/"`

  - **No validation**: `null`

    (`null`)

    No validation is performed on the input text.

- `format_message` (`string | null`, optional, 1 to 100 characters)

  A message displayed to the recipient when their input does not match the specified `format`. Use this to explain what format is expected. Set to `null` to use the default validation message.

  Learn more in [Format Validation: Adding a Custom Message](https://signatureapi.com/docs/api/resources/places/text-input#format-messages).

  Example: `"Please enter a valid 8-digit reference number"`

- `font_size` (`integer`, optional, default: 12, minimum 6, maximum 12)

  The font size in points for this input place. One point equals 1/72 of an inch.

  Example: `12`

- `width` (`number`, optional, default: 30, minimum 30, maximum 540)

  The width of the input field in points (1 point = 1/72 inch). The field may expand beyond this width during typing.

  Example: `200`

## Examples

#### Optional Email Field

```json
{
  "key": "buyer_email",
  "type": "text_input",
  "recipient_key": "buyer",
  "capture_as": "buyer_email",
  "prompt": "john@example.com",
  "hint": "Please enter your email",
  "format": "email",
  "requirement": "optional",
  "width": 200,
  "font_size": 8
}
```

#### Required Reference Number

```json
{
  "key": "reference_number",
  "type": "text_input",
  "recipient_key": "applicant",
  "capture_as": "ref_number",
  "prompt": "12345678",
  "hint": "Your 8-digit reference code",
  "format": "/^[0-9]{8}$/",
  "format_message": "Must be exactly 8 digits",
  "requirement": "required",
  "width": 120
}
```

#### Address Field (Wide)

```json
{
  "key": "mailing_address",
  "type": "text_input",
  "recipient_key": "borrower",
  "capture_as": "borrower_address",
  "prompt": "123 Main St, City, State ZIP",
  "hint": "Enter your full mailing address",
  "requirement": "required",
  "width": 350,
  "font_size": 10
}
```

#### US ZIP Code

```json
{
  "key": "zip_code",
  "type": "text_input",
  "recipient_key": "customer",
  "capture_as": "customer_zip",
  "prompt": "90210",
  "format": "zipcode-us",
  "requirement": "required",
  "width": 80
}
```
