Can we have multiple occurrences of a same signer on a document
Thursday, June 17, 2021 at 10:17pmHi 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
Friday, June 18, 2021 at 08:49amHi 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
Reply to: Can we have multiple occurrences of a same signer on a document
Friday, June 18, 2021 at 09:06amThanks 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: Thanks for your quick…
Friday, June 18, 2021 at 09:12amYes, 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
Reply to: Can we have multiple occurrences of a same signer on a document
Friday, June 18, 2021 at 09:46amThanks for your response Liang, Sure we will look into this approach