Docusign XML 检查为复选框

2024-01-10

我正在尝试填充模板上的复选框。

文档位于https://www.docusign.com/p/APIGuide/Content/Sending%20Group/Tab.htm https://www.docusign.com/p/APIGuide/Content/Sending%20Group/Tab.htm告诉我设置 Value = “X” 来选中该复选框。那是行不通的。

现在我找到了文档https://www.docusign.com/p/RESTAPIGuide/Content/REST%20API%20References/Tabs/Checkbox%20Tab.htm https://www.docusign.com/p/RESTAPIGuide/Content/REST%20API%20References/Tabs/Checkbox%20Tab.htm这告诉我设置 select = true

如何选中复选框?

以下是 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>[email protected] /cdn-cgi/l/email-protection</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>[email protected] /cdn-cgi/l/email-protection</email>
      <name>FIRSTNAME LASTNAME</name>
      <roleName>Producer</roleName>
      <clientUserId>CLIENTUSERID2</clientUserId>
    </templateRole>
  </templateRoles>
</envelopeDefinition>

复选框不是textTab(转换为控制台 UI 中的数据字段)。要指定 xml 格式的复选框,请尝试以下操作:

<tabs>
    <textTabs>
        <text>
            <tabLabel>ApplicationNumber</tabLabel>
            <value>APPLICATIONNUMBER</value>
        </text>
    </textTabs>
    <checkboxTabs>
        <checkbox>
            <selected>true</selected>
            <shared>false</shared>
            <tabLabel>checkBoxLabel1</tabLabel>             
        </checkbox>
    <checkbox>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Docusign XML 检查为复选框 的相关文章

随机推荐