This topic contains 9 replies, has 2 voices, and was last updated by  Duo_Liang 2 months, 2 weeks ago.

  • Author
    Posts
  • Participant
    nehme
    Advanced Member
    Member since: 23.07.2018
    Number of posts: 123

    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

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 691

    Score

    0

    Hi nehme,

    What do you mean by “hide signature” vs “active signature”? Can you describe more on your scenario?

    Duo


    Duo Liang
    OneSpan Junior Technical Evangelist
    Participant
    nehme
    Advanced Member
    Member since: 23.07.2018
    Number of posts: 123

    Score

    0

    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

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 691

    Score

    0

    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 Junior Technical Evangelist
    Participant
    nehme
    Advanced Member
    Member since: 23.07.2018
    Number of posts: 123

    Score

    0

    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

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 691

    Score

    0

    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 Junior Technical Evangelist
    Attachments:
    You must be logged in to view attached files.
    Participant
    nehme
    Advanced Member
    Member since: 23.07.2018
    Number of posts: 123

    Score

    0

    Hello Duo,

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

    Thanks,
    Nehme

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 691

    Score

    0

    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 Junior Technical Evangelist
    Participant
    nehme
    Advanced Member
    Member since: 23.07.2018
    Number of posts: 123

    Score

    0

    Hello Duo,

    I did not get what do you mean?

    Thanks,
    Nehme

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 691

    Score

    0

    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 < = y.Page && x.Y <= y.Y)
                        return -1;
                    else
                        return 1;
                });
                signerSignatures.ForEach(s => 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 Junior Technical Evangelist

You must be logged in to reply to this topic.