Created
February 4, 2022 14:17
-
-
Save bjoerntx/c984b5d807d66186470c51b36aa25b6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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