Docusign XML Check as Checkbox

我的未来我决定 提交于 2021-01-27 19:50:41

问题


I’m trying to populate a checkbox on a template.

The documentation at https://www.docusign.com/p/APIGuide/Content/Sending%20Group/Tab.htm tell me to set Value = “X” to check the checkbox. That doesn’t work.

Now I found documentation at https://www.docusign.com/p/RESTAPIGuide/Content/REST%20API%20References/Tabs/Checkbox%20Tab.htm that tells me to set select = true

How do you check a checkbox?

Here’s a summary of the XML:

    <envelopeDefinition xmlns="http://www.docusign.com/restapi">
  <status>sent</status>
  <emailSubject>DocuSign API - Embedded Signing example</emailSubject>
  <templateId>GUID TEMPLATE ID</templateId>
  <templateRoles>
    <templateRole>
      <email>NAME1@DOMAIN.COM</email>
      <name>First Last</name>
      <roleName>Applicant</roleName>
      <clientUserId>CLIENTUSERID1</clientUserId>
      <tabs>
        <textTabs>
          <text>
            <tabLabel>ApplicationNumber</tabLabel>
            <value>APPLICATIONNUMBER</value>
          </text>
          <text>
            <tabLabel>checkBoxLabel1</tabLabel>
            <selected>true</selected>
          </text>
          <text>
            <tabLabel>checkBoxLabel2</tabLabel>
            <value>X</value>
          </text>
        </textTabs>
      </tabs>
    </templateRole>
    <templateRole>
      <email>NAME2@DOMAIN.COM</email>
      <name>FIRSTNAME LASTNAME</name>
      <roleName>Producer</roleName>
      <clientUserId>CLIENTUSERID2</clientUserId>
    </templateRole>
  </templateRoles>
</envelopeDefinition>

回答1:


Check box is not a textTab (which translates to a data field in the Console UI). To specify a checkbox in the xml format try this:

<tabs>
    <textTabs>
        <text>
            <tabLabel>ApplicationNumber</tabLabel>
            <value>APPLICATIONNUMBER</value>
        </text>
    </textTabs>
    <checkboxTabs>
        <checkbox>
            <selected>true</selected>
            <shared>false</shared>
            <tabLabel>checkBoxLabel1</tabLabel>             
        </checkbox>
    <checkbox>


来源:https://stackoverflow.com/questions/23660563/docusign-xml-check-as-checkbox

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!