Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created February 4, 2022 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/c984b5d807d66186470c51b36aa25b6e to your computer and use it in GitHub Desktop.
Save bjoerntx/c984b5d807d66186470c51b36aa25b6e to your computer and use it in GitHub Desktop.
// attach the callback
window.addEventListener("documentViewerLoaded", function () {
TXDocumentViewer.signatures.setSubmitCallback(handleSignedDocument);
});
function handleSignedDocument(data) {
var returnObject = JSON.parse(data);
if (returnObject.success === true)
alert("Thanks for signing!");
else
alert("Signing failed!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment