Vikash Tiwary
Vikash Tiwary

Reputation: 11

How to place sign here docusign tag in document dynamically

I am using Docusign for Salesforce for signing documents. I download the pre-filled document from other system which has a separate column for signature which is labelled as 'Applicant's Signature'. I upload the document as attachment on record detail page in salesforce. I would like that when agent clicks the 'send with docusign' custom button 'Sign Here' tab gets automatically added by identifying the existing text(Applicant's Signature) from the document.

FYI, I have already seen that it is possible when we place autoplace/anchor text(such as \s1) in document. Any recommendation around adding 'sign here' tab by recognizing the text within the document? Also, I have hidden both the screens which appears after clicking the 'send with docusign' button so agents will not be able to use creating custom tag and drag/drop. Is it possible to achieve?

Upvotes: 0

Views: 1345

Answers (1)

Noor A Shuvo
Noor A Shuvo

Reputation: 2807

You can create signHere tab by two ways.

  1. By X and Y coordinate
  2. By mentioning the anchor tex

If you are using REST API, your JSON will look like

"recipients": {
        "signers": [{
            "email": "[email protected]",
            "name": "John Doe",
            "recipientId": "1",
            "tabs": {
                "signHereTabs": [{
                    "xPosition": "100",
                    "yPosition": "100",
                    "documentId": "1",
                    "pageNumber": "1"
                }],
                "initialHereTabs": [{
                    "anchorString": "Please Sign Here:",
                    "anchorXOffset": "1",
                    "anchorYOffset": "0",
                    "anchorUnits": "inches"
                }]
            }
        }]
}

Upvotes: 1

Related Questions