Workflows

Custom fields to track deals, matters and client numbers

Custom fields let you attach your own references, such as a deal ID, matter number or client code, to an envelope. You can add up to 10 name and value pairs, recipients do not see them, and you can search and export them later.

Add custom fields to an envelope

Add custom fields while you prepare the envelope, before you send it. Open the section for expiry, reminders, paper signing and custom fields, then type one pair per line as name, colon, value.

  • Deal ID: D-1042
  • Matter: 2026-017
  • Client code: ACME-22

Know the limits

DocAISign checks these rules when you send or schedule the envelope. If a pair breaks one, you see a message explaining the problem, and nothing goes out until you fix it.

  • Up to 10 custom fields on each envelope.
  • A name can be up to 40 characters.
  • A value can be up to 150 characters.
  • Each name must be different on that envelope. Deal ID and deal id count as the same name.

Custom fields or form fields?

The two are easy to mix up. Use this rule: if the signer needs to see or fill in the information, use a form field on the document. If only your team needs it, use a custom field.

For example, a law office might put the client's address in a form field, because it belongs in the agreement. The internal matter number goes in a custom field, because the client does not need it to sign.

Find and export envelopes later

Type a value into the search box on the documents page to find matching envelopes. Search looks for the text anywhere in the value, so D-104 also finds D-1042. Search for the full reference when you want one exact result.

The Export CSV button gives you a spreadsheet of your envelopes. All custom fields for an envelope share one column, written like this: Deal ID=D-1042; Matter=2026-017. Split that column in your spreadsheet if you want each name in its own column.

Custom fields also appear on the envelope's own page, so you can confirm the reference when you open it.

Fill custom fields from a bulk send

When you bulk send from a CSV file, an extra column fills one of your own template fields if its header matches that field's label. Any other extra column becomes a custom field on that person's envelope.

For example, a CSV with the columns name, email and Client code gives every envelope its own client code. Keep to 10 custom field columns or fewer, because each envelope has the same limit.

Set custom fields through the API

In the API, custom fields are called metadata. Send them when you create the envelope. They come back with the envelope and in webhook events, so your CRM or case system can match a signed document to its own record.

curl -X POST https://docaisign.com/api/v1/envelopes \
  -H "Authorization: Bearer dsk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "templateId": "TEMPLATE_ID",
    "recipients": [{ "name": "Sam Lee", "email": "[email protected]" }],
    "metadata": { "dealId": "D-1042", "owner": "Sales" }
  }'

Common mistakes to avoid

Most problems come from inconsistent entries. Write a short list of approved names and formats, and share it with everyone who sends.

For example, a small agency might agree on three names only: Client code, Project and Owner. Client code is always the letters and number from its accounts system, such as ACME-22. Anyone exporting the list later can then filter it without cleaning the data first.

  • Mixing names such as Deal ID, DealID and Deal number across envelopes.
  • Changing value formats, such as D-1042 one month and 1042 the next.
  • Storing passwords, tax numbers or other sensitive data. A reference number that points to your own system is safer.
  • Waiting until after sending. The envelope page shows custom fields but has no option to change them.

Common questions

Do custom fields appear on the signed PDF?

They are not placed on the document as fields for signers. If a reference must appear in the agreement, put it in the document text or a form field.

Can a team admin search a member's envelopes by custom field?

Custom field search covers your own envelopes. The team envelopes view searches by file name and subject.

Do custom fields stay after the signed files are deleted?

Yes. Signed files are currently deleted 30 days after signing, but the envelope's entry and its custom fields stay in your list, so download the files you need to keep.