Javascript: Signatures.setSubmitCallback Method
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
| Parameter | Description |
|---|---|
| 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);
});