如何预填充DocuSign选项卡的值? [英] How do I pre-populate the values of DocuSign tabs?

查看:77
本文介绍了如何预填充DocuSign选项卡的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,我正在发送一个具有如下所示的数据字段标签的请求正文:

Right now I'm sending a request body that has Data Field tabs that look like this:

"tabs": {
"textTabs": [
    {
      "tabLabel": "Data Field 1",
      "xPosition": "200",
      "yPosition": "200",
      "documentId": "1",
      "pageNumber": "1"
    }
  ]
}

有没有一种方法可以填充该字段的初始值,使其以每个接收者的特定数据开头?

Is there a way I can populate the initial value of the field so that it starts out with specific data for each recipient?

推荐答案

是的,您只需要设置value属性。

Yes you just have to set the value property.

类似的方法应该起作用:

Something like this should work:

"tabs": {
"textTabs": [
    {
      "tabLabel": "Data Field 1",
      "value": "Initial data goes here...",
      "xPosition": "200",
      "yPosition": "200",
      "documentId": "1",
      "pageNumber": "1"
    }
  ]
}

我们在4月进行了有关模板的网络研讨会,第二个示例我们确实演示了如何在信封中填充数据字段,请参见此要点的示例#2:
https://github.com/Ergin008/DocuSign-REST-API-Webinar-April2013

We did a webinar on templates back in April and the second example we did showed how to populate Data Fields in your envelopes, see example #2 of this Gist: https://github.com/Ergin008/DocuSign-REST-API-Webinar-April2013

此外,如果您使用的是XML格式的请求正文(而不是JSON),您可以使用以下内容预填充标签:

Additionally, if you are using XML formatted request bodies instead of JSON, you can use the following to pre-fill your tabs:

<tabs>
    <textTabs>
        <text>
            <tabLabel>DataField1</tabLabel>
            <value>Initial Data Goes Here</value>
            <xPosition>200</xPosition>
            <yPosition>200</yPosition>
            <documentId>1</documentId>
            <pageNumber>1</pageNumber>
        </text>
    </textTabs>
</tabs>

这篇关于如何预填充DocuSign选项卡的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆