How to set a custom format for a text box field?
Published:
A custom format controls how values appear in a text box field. It automatically formats the text entered by a signer based on a pattern you define. For example, if a signer enters ab12cd34, the field displays AB12-CD34. Use it for values such as serial numbers, reference codes, or product codes.
You can use custom formats in documents, templates, and bulk links.
Configure a custom format
- On the Prepare page, add a Text box field and select it.
- In the field settings, set Validation to Custom format.
- Click Set custom format.
- Configure the format options as needed. Use the Preview section to review the formatted output.
- Click Apply.
Custom format options
| Option | Description |
|---|---|
| Blocks | Defines the number of characters in each segment. Click + to add a segment or click the remove icon to delete one. You can configure 2 to 8 segments, with 1 to 16 characters per segment. |
| Delimiter | Defines the character used between segments: dash (-), dot (.), space, slash (/), colon (:) , or underscore (_) |
| Allowed characters | Defines the characters signers can enter: numbers (0-9), uppercase letters (A-Z), lowercase letters (a-z), or a combination of these options. At least one option must be selected. |
| Prefix text | Adds fixed text before the formatted value. The prefix can contain up to 30 characters. |
By default, custom formats use three segments of four digits separated by dashes.
Examples
| Format | Signer enters | Field displays |
|---|---|---|
| Segments 4-4, dash, numbers and uppercase letters | ab12cd34 |
AB12-CD34 |
| Segments 2-2-4, slash, numbers | 27112026 |
27/11/2026 |
Segments 3-3, slash, numbers and uppercase letters, prefix ID- |
ab12cd |
ID-AB1/2CD |
- Signers can enter only the characters allowed by the custom format.
- If only uppercase letters are allowed, lowercase letters are automatically converted to uppercase as the signer types. If only lowercase letters are allowed, uppercase letters are automatically converted to lowercase.
- Changing Validation to another type removes the custom format configuration.
- Text box fields that use the same data sync tag must use the same custom format.
- Custom formats are not applied when self-signing a document.