【问题标题】:Create envelope using radio button group tag with DocuSign API使用带有 DocuSign API 的单选按钮组标签创建信封
【发布时间】:2017-08-28 20:21:10
【问题描述】:

我一直在使用 DocuSign SOAP API 调用创建信封。 对于我的一位客户,我必须根据单选按钮组标签选择的值创建条件标签。

我可以创建带有几个单选按钮标签的单选按钮组标签,但我无法为每个单选按钮标签设置值。我为每个单选按钮分配了单选按钮组名称,以便收件人只能从组中选择一个单选按钮。

当我设置条件标签时,我必须提供父标签名称和值。由于我无法使用值设置单选按钮标签,因此我无法使用条件标签中的值。

我正在为每个单选按钮标签设置两个属性,如下所示..

tab.value = "cc"
tab.CustomTabRadioGroupName = "paymentmethod"

除了类型、位置等属性。 有没有其他方法来设置单选按钮标签值?

谢谢,

最小

【问题讨论】:

    标签: docusignapi


    【解决方案1】:

    I have created a SOAP XML with a radio group having two options Yes and No, when Yes is selected then a Textbox appears, please let me know if it works for you.这里的技巧是“Radio”的 CustomTabType 使 TabLabels 对于您想要组合在一起的任何单选按钮都相同。在下面的示例中,它是 Paymentmethod,并且 Yes 和 No 是 Paymentmethod 单选组内的单选选项。

    <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>?</ns:AccountId>
                <ns:Documents>
                   <ns:Document>
                    <ns:ID>32093411</ns:ID>
                    <ns:Name>Challenge3.docx</ns:Name>
                    <ns: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>abc@gmail.com</ns:Email>
                      <ns:Type>Signer</ns:Type>
                      <ns:RoutingOrder>1</ns:RoutingOrder>
                   </ns:Recipient>
                </ns:Recipients>
                <ns:Tabs>
                  <ns:Tab>
                    <ns:DocumentID>32093411</ns:DocumentID>
                    <ns:RecipientID>45399085</ns:RecipientID>
                    <ns:PageNumber>1</ns:PageNumber>
                    <ns:XPosition>285</ns:XPosition>
                    <ns:YPosition>304</ns:YPosition>
                    <ns:Type>Custom</ns:Type>
                    <ns:Name>Yes</ns:Name>
                    <ns:TabLabel>Paymentmethod</ns:TabLabel>
                    <ns:CustomTabType>Radio</ns:CustomTabType>
                    <ns:CustomTabRequired>true</ns:CustomTabRequired>
                    <ns:CustomTabLocked>false</ns:CustomTabLocked>
                    <ns:SharedTab>false</ns:SharedTab>
                 </ns:Tab>
                 <ns:Tab>
                    <ns:DocumentID>32093411</ns:DocumentID>
                    <ns:RecipientID>45399085</ns:RecipientID>
                    <ns:PageNumber>1</ns:PageNumber>
                    <ns:XPosition>285</ns:XPosition>
                    <ns:YPosition>324</ns:YPosition>
                    <ns:Type>Custom</ns:Type>
                    <ns:Name>No</ns:Name>
                    <ns:TabLabel>Paymentmethod</ns:TabLabel>
                    <ns:CustomTabType>Radio</ns:CustomTabType>
                    <ns:CustomTabRequired>true</ns:CustomTabRequired>
                    <ns:CustomTabLocked>false</ns:CustomTabLocked>
                </ns:Tab>
                <ns:Tab>
                    <ns:DocumentID>32093411</ns:DocumentID>
                    <ns:RecipientID>45399085</ns:RecipientID>
                    <ns:PageNumber>1</ns:PageNumber>
                    <ns:XPosition>374</ns:XPosition>
                    <ns:YPosition>302</ns:YPosition>
                    <ns:ScaleValue>10.0</ns:ScaleValue>
                    <ns:Type>Custom</ns:Type>
                    <ns:TabLabel>Text 85a340b8-8159-420c-810a-76926f8c6dad</ns:TabLabel>
                    <ns:CustomTabType>Text</ns:CustomTabType>
                    <ns:CustomTabWidth>78</ns:CustomTabWidth>
                    <ns:CustomTabHeight>11</ns:CustomTabHeight>
                    <ns:CustomTabRequired>true</ns:CustomTabRequired>
                    <ns:CustomTabLocked>false</ns:CustomTabLocked>
                <ns:CustomTabDisableAutoSize>false</ns:CustomTabDisableAutoSize>
    
            <ns:ConditionalParentLabel>Paymentmethod</ns:ConditionalParentLabel>
                    <ns:ConditionalParentValue>Yes</ns:ConditionalParentValue>
                    <ns:Font>LucidaConsole</ns:Font>
                    <ns:Bold>false</ns:Bold>
                    <ns:Italic>false</ns:Italic>
                    <ns:Underline>false</ns:Underline>
                    <ns:FontColor>Black</ns:FontColor>
                    <ns:FontSize>Size9</ns:FontSize>
                    <ns:IncludeNoteInEmail>false</ns:IncludeNoteInEmail>
                    <ns:IsPaymentAmount>false</ns:IsPaymentAmount>
                    <ns:RoundDecimalPlaces>0</ns:RoundDecimalPlaces>
                    <ns:MaxLength>4000</ns:MaxLength>
                    <ns:RequireAll>false</ns:RequireAll>
                </ns:Tab>
                <ns:Tab>
                    <ns:DocumentID>32093411</ns:DocumentID>
                    <ns:RecipientID>45399085</ns:RecipientID>
                    <ns:PageNumber>1</ns:PageNumber>
                    <ns:XPosition>376</ns:XPosition>
                    <ns:YPosition>366</ns:YPosition>
                    <ns:ScaleValue>1.0</ns:ScaleValue>
                    <ns:Type>Custom</ns:Type>
                    <ns:TabLabel>Text 5928b009-b2af-4bdb-beb5-62c803fdae0b</ns:TabLabel>
                    <ns:CustomTabType>Text</ns:CustomTabType>
                    <ns:CustomTabWidth>78</ns:CustomTabWidth>
                    <ns:CustomTabHeight>11</ns:CustomTabHeight>
                    <ns:CustomTabRequired>true</ns:CustomTabRequired>
                    <ns:CustomTabLocked>false</ns:CustomTabLocked>
                <ns:CustomTabDisableAutoSize>false</ns:CustomTabDisableAutoSize>
                    <ns:TemplateLocked>false</ns:TemplateLocked>
                    <ns:TemplateRequired>false</ns:TemplateRequired>
                <ns:ConditionalParentLabel>Paymentmethod</ns:ConditionalParentLabel>
                    <ns:ConditionalParentValue>No</ns:ConditionalParentValue>
                    <ns:SharedTab>false</ns:SharedTab>
                <ns:RequireInitialOnSharedTabChange>false</ns:RequireInitialOnSharedTabChange>
                    <ns:ConcealValueOnDocument>false</ns:ConcealValueOnDocument>
                    <ns:Font>LucidaConsole</ns:Font>
                    <ns:Bold>false</ns:Bold>
                    <ns:Italic>false</ns:Italic>
                    <ns:Underline>false</ns:Underline>
                    <ns:FontColor>Black</ns:FontColor>
                    <ns:FontSize>Size9</ns:FontSize>
                    <ns:IncludeNoteInEmail>false</ns:IncludeNoteInEmail>
                    <ns:IsPaymentAmount>false</ns:IsPaymentAmount>
                    <ns:RoundDecimalPlaces>0</ns:RoundDecimalPlaces>
                    <ns:MaxLength>4000</ns:MaxLength>
                    <ns:RequireAll>false</ns:RequireAll>
                 </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>
    

    【讨论】:

    • 感谢您的反馈。您在此处将标签值“是/否”添加到标签的名称属性,而不是标签的实际值属性。我尝试做同样的事情,但我没有在表单数据中获得单选按钮标签的值。请指教。
    • 您通过哪个调用来获取表单数据?如果单选按钮值将是 X 或空白。如果选择“是”,则 X 将返回“是”单选按钮,否则将为空白
    • 我目前正在检查他们 DocuSign 帐户中的表单数据,因为我遇到了问题,但我需要使用条件标签中的值。在这种情况下,我无法为单选按钮指定“X”。我必须从组中获取价值。
    • 我在上面的示例中执行了条件标签,我正在显示文本框-85A340B8-8159-420C-810C-810A-810A-76926F8C6DAD,仅在选择YES时才显示。我通过使用单选按钮的 TabLabel 和文本框的 ns:ConditionalParentLabel 和 ns:ConditionalParentValue 来实现它
    • 您已经创建了两个单独的单选按钮。我需要在组中创建单选按钮,以便收件人只能选择一个选项。这就是原因,我必须在条件中使用所选单选按钮的值。在您的情况下,两个单选按钮的选项卡标签不同,因此它们不属于该组。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-09-04
    • 1970-01-01
    • 2019-03-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多