Trap canceled digital signature

T

Tillman Erb

Is there a way to program the OnSign event to identify whether a user
canceled digital signing of a form? I want to update certain fields in the
form programmatically only if the user completes the digital signature
wizard, not if they cancel out of it. Should I be using another event to do
this?
 
T

Tillman Erb

I have solved it. On the OnSign event, I do the following:

....
' disable default opening of signature dialog
e.ReturnStatus = True

Dim sig As Signature = e.SignedDataBlock.Signatures.Create()
sig.Sign()

' the following tests for the existence of the signature
If thisXDocument.SignedDataBlocks(e.SignedDataBlock.Name).Signatures.Count >
0 Then
[code conditional on successful signature]
Else
[code conditional on unsuccessful signature]
End If
....

Seems to work!

~ Tillman
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top