I am using docusign to send off vendor agreements. The agreements are all the same wording, except for vendor name and address. Is there a way I can pass information to the envelope creation script (PHP) to dynamically populate name and address fields on a template document?
Asked
Active
Viewed 3,127 times
4
-
Yes you can, and this has already been answered through a previous SO question. Even though it's related to Embedded Sending the idea is still the same, use the tabLabel property. See this question: http://stackoverflow.com/questions/18314753/embedded-signing-rest-api-php/18319313#18319313 – Ergin Sep 20 '13 at 23:47
1 Answers
3
Yes you can definitely populate tabs in an embedded signing view. This is all controlled through the
tabLabel
property of each tab in your request body. For instance, if you login to the DocuSign Console and add two data fields (textTabs) to your envelope where one has the label "email" and the other has a label of "address" then the following JSON body prefills those tabs based on the value passed.
"tabs": {
"textTabs": [
{
"tabLabel": "address",
"value": "123 Main St. SF, CA"
},
{
"tabLabel": "email",
"value": "sample@email.com"
}
]
}
}
],
"status": "sent"
}

Ergin
- 9,254
- 1
- 19
- 28
-
Does anyone have a more updated version of this answer with full JSON? – Alex Chin May 22 '17 at 22:35