Reputation: 129
I have been creating envelopes using DocuSign SOAP API calls. For one of my clients, I have to create conditional tags based upon the values of the radio button group tag selection.
I am able to create the radio button group tag with a few radio button tags fine but am not able to setup the value for each of the radio button tag. I have assigned the radio button group name for each of the radio button so that the recipient can only select one radio button from the group.
When I setup the conditional tag, I have to provide the parent tag name and the value. Since I am not able to setup the radio button tags with the values, I cannot use the the values in the conditional tags.
I am setting two properties for each of the radio button tag as shown below..
tab.value = "cc"
tab.CustomTabRadioGroupName = "paymentmethod"
in addition to type, position etc properties. Is there any other way to setup the radio button tag values?
Thanks,
Minal
Upvotes: 0
Views: 1067
Reputation: 6818
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. The trick here is CustomTabType of “Radio” make the TabLabels the same for any radio buttons you want to group together. In below example it is Paymentmethod, and Yes and No are radio options inside Paymentmethod radio group.
<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>
Upvotes: 2