nehme

Hide Signature

0 votes
Hello, I have a form to be signed, inside this form there are 5 signatures for same person or email, can I have one of these signature and keep the other signatures active. Thanks, Nehme

Reply to: Hide Signature

0 votes
Hi nehme, What do you mean by "hide signature" vs "active signature"? Can you describe more on your scenario? Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Hide Signature

0 votes
Hello Duo, What I mean is your have 5 signatures in a one form for the same signer let us say signer1, I want to hide one signature and keep the rest, so at the end user will sign only 4 times not 5 times. Thanks, Nehme

Reply to: Hide Signature

0 votes
Hi nehme, Do you mean "delete signature"? Here's the function:
eslClient.ApprovalService.DeleteApproval(PackageId packageId, string documentId, string approvalId);
And please let me know if I misunderstood your point. Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Hide Signature

0 votes
Hello Duo, Thanks for your reply, but if i use this function it will delete all the signatures. The case like this: a form with signer1 to sign in 5 times, using your way it will delete all the signatures for this signer. Regards, Nehme

Reply to: Hide Signature

0 votes
Hi nehme, This delete function will only delete specific signature by its ID, it's the same result as you click the "Remove" button to remove 1 signature out of 5 in Designer. Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Attachments
1-4-1.png15.55 KB

Reply to: Hide Signature

0 votes
Hello Duo, Thanks!, One question, how I can get the approvalId from the esign portal? or is there another way? Thanks, Nehme

Reply to: Hide Signature

0 votes
Hi nehme, Unfortunately, there's no direct method getting Approval ID from the Designer page from my knowledge. But you can sort all approvals belonging to this Signer by Page and Top distance, and delete the corresponding index. Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Hide Signature

0 votes
Hello Duo, I did not get what do you mean? Thanks, Nehme

Reply to: Hide Signature

0 votes
Hi nehme, This code snippet shows what I mean:
            String signerEmail = "signer_email";
            DocumentPackage pkg = eslClient.GetPackage(new PackageId("package_id"));
            Document doc = pkg.GetDocument("document_name");

            List signerSignatures = doc.Signatures.FindAll(s => s.SignerEmail.Equals(signerEmail));

          
            signerSignatures.Sort((x, y) => {
                if (x.Page  Debug.WriteLine(s.Id.Id));
As a result, all signatures IDs belonging to this signer are sorted in location order:
ZsKVtfj5mGwY
NANDWS6DKyAD
5RkRVe08P948
fqDzWgjx3vgC
bIqBWmweNFQW
DpGLPQJtPC4J
p7pm6yuxWm45
r22Azl52lhs2
iNFmOmqhwEEO
sETK93O826oK
66w60x1eAcwA
hkxRdVy3hJQR
So you can visually determine which approval to delete. Hope this could help! Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off