Not able to pass in values to docusign template

前端 未结 1 1083
自闭症患者
自闭症患者 2021-01-24 23:59

I\'m trying to figure out how to pass in form field values to my docusign template. I looked at the v2 API docs but found nothing.

1条回答
  •  无人及你
    2021-01-25 00:29

    You just specify in your JSON request properties (or XML) by using the tabLabel and value properties. For instance, this would populate 2 data fields, one named "ApplicantName" the second "ApplicantSSN"...

    {
        "accountId": "221765",
        "emailSubject": "DocuSign Templates Webinar - Example 2",
        "emailBlurb": "Example #2 - Dynamically Populate Form Fields",
        "templateId": "44D9E888-3D86-4186-8EE9-7071BC87A0DA",
        "templateRoles": [
            {
                "email": "jondow@email.com",
                "name": "Jon Dow",
                "roleName": "RoleOne",
                "tabs": {
                    "textTabs": [
                        {
                            "tabLabel": "ApplicantName",
                            "value": "John Doe"
                        },
                        {
                            "tabLabel": "ApplicantSSN",
                            "value": "12-345-6789"
                        }
                    ]
                }
            }
        ],
        "status": "sent"
    }
    

    For a full code walkthrough you can combine the above JSON with one of the sample code walkthroughs here:

    DocuSign API Walkthrough #1

    0 讨论(0)
提交回复
热议问题