Docusign XML选中复选框 [英] Docusign XML Check as Checkbox
问题描述
我正在尝试在模板上填充一个复选框.
I’m trying to populate a checkbox on a template.
位于 https://www.docusign.com上的文档/p/APIGuide/Content/Sending%20Group/Tab.htm 告诉我设置Value ="X"以选中该复选框.那是行不通的.
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.
现在,我在 https中找到了文档://www.docusign.com/p/RESTAPIGuide/Content/REST%20API%20References/Tabs/Checkbox%20Tab.htm 告诉我设置select = true
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?
以下是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>
推荐答案
复选框不是 textTab
(转换为控制台UI中的数据字段).要以xml格式指定复选框,请尝试以下操作:
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>
这篇关于Docusign XML选中复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!