capture-signature (legacy docs)

These capture-signature docs are out of date

New functionality and features were added to capture-signature in version 4.74.0 of the JourneyApps Runtime. Please refer to the latest docs here.

<capture-signature bind="form.signature" label="Please sign to accept" />

Configuration

Using the signature

Signatures are captured as SVG's with a path that describes it. That path can be accessed using toText():

// Get the SVG text of the signature as XML
// Assuming the name of the singature is `captured_sig`
var signatureSVG = view.captured_sig.toText();

Signatures can also be printed using a Zebra bluetooth printer (see docs) directly from version 4.34.4 of the JourneyApps container. The Zebra printer uses a language called ZPL, so we can convert the signature to ZPL by using:

// Get the SVG text of the signature as ZPL
// Assuming the name of the signature is `captured_sig`
var signatureSVG = view.captured_sig.toZPL();

Last updated