如何向文档添加复选框锚定选项卡?

时间:2017-10-20 22:26:28

标签: docusignapi

我尝试使用以下代码添加一个复选框锚点选项卡,但它最终只是一个常规文本字段:

            var inputTab = new Tab
            {
                Type = TabTypeCode.Custom,
                CustomTabType = CustomTabType.Checkbox,
                CustomTabRequired = false,
                CustomTabRequiredSpecified = true,
                AnchorTabItem =
                   new AnchorTab
                   {
                       AnchorTabString = "Input41-1",
                       IgnoreIfNotPresent = true,
                       IgnoreIfNotPresentSpecified = true
                   },
                TabLabel = "Label" + i,
                DocumentID = "1",
                RecipientID = recipientNum
            };

            this.tabList.Add(inputTab);

1 个答案:

答案 0 :(得分:0)

我有以下SOAP API示例,它可以很好地创建CheckBox和Radio Buttons,

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.docusign.net/API/3.0">
       <soapenv:Header/>
       <soapenv:Body>
          <ns:CreateAndSendEnvelope>
             <ns:Envelope>
               <ns:AccountId>{accountId}</ns:AccountId>
                <ns:Documents>
                   <ns:Document>
                    <ns:ID>32093411</ns:ID>
                    <ns:Name>DocName</ns:Name>
                    <ns:PDFBytes>{pdfBytes}</ns:PDFBytes>
                    <ns:FileExtension>pdf</ns:FileExtension>
                </ns:Document>
                </ns:Documents>
                <ns:Recipients>
                   <ns:Recipient>
                      <ns:ID>45399085</ns:ID>
                      <ns:UserName>Test Radio Name</ns:UserName>
                      <ns:Email>test@gmail.com</ns:Email>
                      <ns:Type>Signer</ns:Type>
                      <ns:RoutingOrder>1</ns:RoutingOrder>
                   </ns:Recipient>
                </ns:Recipients>
                <ns:Tabs>
                <ns:Tab>
                    <ns:RecipientID>45399085</ns:RecipientID>
                    <ns:AnchorTabItem>
                        <ns:AnchorTabString>/TextHereClient/</ns:AnchorTabString>
                    </ns:AnchorTabItem>
                    <ns:Type>Custom</ns:Type>
                    <ns:TabLabel>Checkbox1</ns:TabLabel>
                    <ns:CustomTabType>Checkbox</ns:CustomTabType>
                </ns:Tab>
                <ns:Tab>
                    <ns:RecipientID>45399085</ns:RecipientID>
                    <ns:AnchorTabItem>
                        <ns:AnchorTabString>/SignHereAdvisor/</ns:AnchorTabString>
                    </ns:AnchorTabItem>
                    <ns:Type>Custom</ns:Type>
                    <ns:TabLabel>Checkbox2</ns:TabLabel>
                    <ns:CustomTabType>Checkbox</ns:CustomTabType>
                </ns:Tab>
                <ns:Tab>
                    <ns:RecipientID>45399085</ns:RecipientID>
                    <ns:AnchorTabItem>
                        <ns:AnchorTabString>Test Anchor</ns:AnchorTabString>
                    </ns:AnchorTabItem>
                    <ns:Type>Custom</ns:Type>
                    <ns:Name>Radio</ns:Name>
                    <ns:TabLabel>Radio Group1</ns:TabLabel>
                    <ns:CustomTabType>Radio</ns:CustomTabType>
                </ns:Tab>
                <ns:Tab>
                    <ns:RecipientID>45399085</ns:RecipientID>
                    <ns:AnchorTabItem>
                        <ns:AnchorTabString>/SignHereClient/</ns:AnchorTabString>
                    </ns:AnchorTabItem>
                    <ns:Type>Custom</ns:Type>
                    <ns:Name>Radio</ns:Name>
                    <ns:TabLabel>Radio Group1</ns:TabLabel>
                    <ns:CustomTabType>Radio</ns:CustomTabType>
                </ns:Tab>
            </ns:Tabs>
                <ns:Subject>Email Subject Radio</ns:Subject>
                <ns:EmailBlurb>Email Blurb Radio</ns:EmailBlurb>
             </ns:Envelope>
          </ns:CreateAndSendEnvelope>
       </soapenv:Body>
    </soapenv:Envelope>