Pradeep2692

Can we have multiple occurrences of a same signer on a document

0 votes

Hi Team, We have a document that has three signers whose signature is needed at three places in a document. **Signer 1**, **Signer2**, **Signer3**(So the total number of Signature blocks should appear are 9).

However, in our code, we see a method called .withOccurence(0) because of which the signing block is getting created only for the first occurrence of signers in the document.

So we would like to know is there a way to create a signature block to all the occurrences of a Signer.

Please check the document attached(In the doc where all we have **Signer n** we need to get a signature block) Thank you


Reply to: Can we have multiple occurrences of a same signer on a document

0 votes

Hi Pradeep2692,

 

If you already knew the total occurrence of the text anchors, it's possible to loop through the indexes and create signatures along the way, see the attached sample code.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Attachments

Reply to: Can we have multiple occurrences of a same signer on a document

0 votes

Thanks for your quick response Liang,

In our scenario, we don't know how many text anchors will the user be adding to the document so we need the occurrence value to be dynamic.
For example, if we run a loop for 5 times and if the user has **Signer 1** six times in the document then only 5 signature blocks will be created in One span and one **Signer 1** will still be loaded without a signature block.

So do we have any method that provides a signature block to all the occurrences of **Signer 1** instead of creating them through a loop? Thanks in advance


Reply to:

0 votes

Yes, that's the main paint point when using text anchor, because you will have to know the exact occurrence of your text anchor. In this scenario, I will suggest you to use text tag feature instead. Simply use tags like {{esl:Signer1:capture:size(200,50)}} or {{esl:Signer1:textfield:size(40,15),Maxlen(3)}} could save you a lot of efforts when building the document and placing the signatures. 

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Can we have multiple occurrences of a same signer on a document

0 votes

Thanks for your response Liang, Sure we will look into this approach


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