TX Text Control .NET Server

Javascript: Signatures.setSubmitCallback Method

Method|Introduced in 30.0

Description

Registers a callback for the signing response. When a redirect URL is configured, request failures are passed to the callback as well.

Syntax

<void> Signatures.setSubmitCallback(<SignatureSubmitCallback> callback)

Parameters

ParameterDescription
callback

Handler invoked with the signing response.

Return Value

Registers a callback for the signing response. When a redirect URL is configured, request failures are passed to the callback as well.

Examples

The following example demonstrates signatures.setSubmitCallback in a practical Document Viewer workflow. Sets a callback function which will be invoked when the document is submitted.

TXDocumentViewer.signatures.setSubmitCallback(function(signedDocument) {
    console.log("Signed document received:", signedDocument);
});