2017-08-28 33 views
0

我一直在使用DocuSign SOAP API調用創建信封。 對於我的一個客戶,我必須根據單選按鈕組標籤選擇的值創建條件標籤。使用DocuSign API使用單選按鈕組標記創建信封

我能夠用幾個單選按鈕標籤創建單選按鈕組標籤,但不能爲每個單選按鈕標籤設置值。我爲每個單選按鈕分配了單選按鈕組名稱,以便收件人只能從組中選擇一個單選按鈕。

當我設置條件標籤時,我必須提供父標籤名稱和值。由於我無法使用值設置單選按鈕標籤,因此我無法使用條件標籤中的值。

如下所示我設置爲每個對應的單選按鈕標籤的兩個屬性..

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

除了打字,位置等方面的性能。 是否有任何其他方式來設置單選按鈕標記值?

感謝,

單寶元

回答

2

我創建了一個SOAP XML與具有收音機組兩個選項是和否,被選中的時候是那麼一個文本框出現,請讓我知道它是否適合你。這裏的技巧是CustomTabType of「Radio」,使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>[email protected]</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> 
+0

感謝您的反饋。您將標記值「yes/no」添加到標記的name屬性,而不是標記的實際值屬性。我試着做同樣的事情,但我沒有得到表單數據中單選按鈕標籤的值。請指教。 –

+0

你在做什麼來獲取表單數據?如果單選按鈕值爲X或空白。如果選擇「是」,則X將返回「是」單選按鈕,否則將爲空白 –

+0

我目前正在檢查來自DocuSign帳戶的表單數據,因爲我遇到了問題,但我需要使用條件標記中的值。在這種情況下,我無法爲單選按鈕指定「X」。我必須從團隊中獲得價值。 –

相關問題