首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将TextBox字段和Picklist添加到通过DocuSignAPI发送的pdf中

将TextBox字段和Picklist添加到通过DocuSignAPI发送的pdf中
EN

Stack Overflow用户
提问于 2018-05-18 17:35:36
回答 2查看 164关注 0票数 1

我有一个visualforce页面呈现,它使用DocuSign SOAP来发送。我需要通过testArea SOAP在pdf上添加一个DocuSign字段和选择列表。

在这个链接中,我发现选项卡参数有文本标签字段和列表标签字段。

单击此处获取Tab参数

如何在代码中编写这两个字段。我的假设应该是这样。

代码语言:javascript
复制
DocuSignAPI.Tab tab1 = new DocuSignAPI.Tab();
    tab1.Type_x = 'Text';
    tab1.RecipientID = 1;
    tab1.DocumentID = 1;
    tab1.AnchorTabItem = new DocuSignAPI.AnchorTab();
    tab1.AnchorTabItem.AnchorTabString = 'bio:';

    envelope.Tabs = new DocuSignAPI.ArrayOfTab();
    envelope.Tabs.Tab = new DocuSignAPI.Tab[1];
    envelope.Tabs.Tab[0] = tab1;  

当我发送它时,我得到了这个错误。

异常- System.CalloutException: Web服务标注失败: WebService返回了一个SOAP错误:服务器无法读取请求。-> XML文档中有一个错误。->实例验证错误:“Text”不是TabTypeCode的有效值。faultcode=soap:Client faultactor=

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-05-18 18:18:45

对于TextTabtype必须是CustomCustomTabType应该是Text。要添加TextTab和下拉列表,XML如下所示:

代码语言:javascript
复制
<ns:Tab>
    <ns:DocumentID>32093411</ns:DocumentID>
    <ns:RecipientID>45399085</ns:RecipientID>
    <ns:PageNumber>1</ns:PageNumber>
    <ns:XPosition>124</ns:XPosition>
    <ns:YPosition>261</ns:YPosition>
    <ns:Type>Custom</ns:Type>
    <ns:TabLabel>Text b5a8927a-4f93-4288-b280-d15023b1b834</ns:TabLabel>
    <ns:CustomTabType>Text</ns:CustomTabType>
</ns:Tab>
<ns:Tab>
    <ns:DocumentID>32093411</ns:DocumentID>
    <ns:RecipientID>45399085</ns:RecipientID>
    <ns:PageNumber>1</ns:PageNumber>
    <ns:XPosition>349</ns:XPosition>
    <ns:YPosition>261</ns:YPosition>
    <ns:Type>Custom</ns:Type>
    <ns:Name>Red;Blue</ns:Name>
    <ns:TabLabel>Dropdown e7f5ad78-9e10-4339-b342-023a729549b7</ns:TabLabel>
    <ns:CustomTabType>List</ns:CustomTabType>
    <ns:CustomTabListItems>Red;Blue</ns:CustomTabListItems>
    <ns:CustomTabListValues>Red;Blue</ns:CustomTabListValues>
</ns:Tab>
票数 1
EN

Stack Overflow用户

发布于 2018-05-18 20:26:03

为了扩展Amit的回答:如果使用DocuSign SOAP,我相信您需要类似于文本选项卡的内容:

代码语言:javascript
复制
tab1.Type = "Custom"
tab1.CustomTabType = "Text"

挑选名单将是:

代码语言:javascript
复制
tab2.Type = "Custom"
tab2.CustomTabType = "List"
tab2.Name = "Red;Green;Blue"

作为列表,使用分号分隔的名称值填充选项。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50416624

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档