DocEngine

Field types · Signature

Signature signature

Native digital signature capture via an HTML5 canvas pad (mouse/touch). On save, the value is a PNG data URL string rendered like an image token.

At a glance

  • Schema type: signature
  • Value: PNG data URL string (or empty)
  • Use when: Internal acknowledgment / validation signatures drawn on the document face.

Type properties

Options that appear only for Signature fields. Shared options (Label, Field Name, Required, …) are on Field types → Common properties.

Max width (px)
Maximum rendered width of the signature image in the document, preview, and PDF (default 320).

Details

  • Built-in field (palette “Signature”). Fill mode opens a signature modal with a drawable canvas.
  • On save, the value is stored as a PNG data URL string (data:image/png;base64,…). Empty is "".
  • Preview and PDF render the signature like an image token (field-token--image).
  • Schema maxWidth (default 320) controls rendered width in the document, preview, and PDF.
  • Legal scope: display-only pad for internal acknowledgment and validation — not a cryptographically signed or legally binding electronic signature (ESIGN, eIDAS, DocuSign, etc.). Integrators that need compliant e-signatures must use a certified provider separately.

Schema

TypeScript (editor package)

interface SignatureFieldSchema extends FieldSchemaBase {
  type: 'signature';
  maxWidth?: number; // default 320 (px) in preview/PDF
}

Value example

{
  "sections": {
    "Approval": {
      "Patient Signature": "data:image/png;base64,iVBORw0KGgo..."
    }
  }
}

Capture flow

  • Fill mode opens the signature pad (mouse and touch).
  • User draws, then confirms — canvas is exported to a PNG data URL.
  • Clearing the pad stores an empty string; isEmpty treats missing/blank like an empty image.
  • Hosts that must persist durable URLs (instead of embedding base64 in document JSON) should post-process the data URL (e.g. upload to Salesforce Files) before long-term storage.

Legal disclaimer

The built-in pad is for internal validation and acknowledgment only. It does not provide certificate-based signing, audit trails required by regulated e-signature laws, or third-party identity proofing. Use a certified e-signature provider when legally binding signatures are required.

Other field types

← All field types