嵌入式Docusign - 在不使用模板的情况下将文本选项卡添加到动态信封

时间:2015-07-16 17:05:20

标签: docusignapi

我无法在没有模板的情况下创建的动态信封上创建文本标签。我将PDf文档作为字节发送到Docusign,因为我需要为每个收件人生成一个唯一的包络ID。我能够使用指定的文档生成收件人视图。我也可以添加signHereTabs和dateSignedTabs,但不能添加文本选项卡/名字标签。文档中很少有地方用户需要使用文本框填写信息。请帮助解决方案,为指导签名添加文本选项卡。

信封定义如下:

"<envelopeDefinition xmlns=\"http://www.docusign.com/restapi\">" + 
                    "<emailSubjectxxx</emailSubject>" +
                    "<status>sent</status>" +                       
                    "<documents>" +
                            "<document>" + 
                            "<documentId>1</documentId>" + 
                            "<name>" + documentName + "</name>" + 
                        "</document>" + 
                    "</documents>" +                        
                    "<recipients>" + 
                        "<signers>" + 
                            "<signer>" + 
                                "<recipientId>1</recipientId>" + 
                                "<email>" + recipientEmail + "</email>" +   
                                "<name>" + recipientName + "</name>" +
                                "<clientUserId>1</clientUserId>" +
                                "<tabs>" +
                                        "<signHereTabs>" +
                                                "<signHere>" +
                                                "<anchorString>By:</anchorString>" +
                                                "<anchorXOffset>1</anchorXOffset>" +
                                                "<anchorYOffset>0</anchorYOffset>" +
                                                "<anchorIgnoreIfNotPresent>false</anchorIgnoreIfNotPresent>" +
                                                "<anchorUnits>inches</anchorUnits>" +
                                                "<documentId>1</documentId>" +
                                                "<pageNumber>1</pageNumber>" +
                                                "<recipientId>1</recipientId>" +
                                            "</signHere>" +
                                        "</signHereTabs>" +
                                        "<dateSignedTabs>" +
                                                "<dateSigned>" +
                                                "<anchorString>(Date)</anchorString>" +
                                                "<anchorXOffset>1</anchorXOffset>" +
                                                "<anchorYOffset>-0.25</anchorYOffset>" +
                                                "<anchorIgnoreIfNotPresent>false</anchorIgnoreIfNotPresent>" +
                                                "<anchorUnits>inches</anchorUnits>" +
                                                "<documentId>1</documentId>" +
                                                "<pageNumber>1</pageNumber>" +
                                                "<recipientId>1</recipientId>" +
                                            "</dateSigned>" +
                                        "</dateSignedTabs>" +
                                        "<textTabs>" +
                                                "<textTab>" +
                                                "<tabLabel>Data Field 1</tabLabel>" +
                                                    "<locked>false</locked>" +
                                                    "<xPosition>200</xPosition>" +
                                                    "<yPosition>200</yPosition>" +
                                                    "<documentId>1</documentId>" +
                                                    "<pageNumber>1</pageNumber>" +
                                                    "<recipientId>1</recipientId>" +
                                                    "<name>Text</name>" +
                                                    "<required>true</required>" +
                                                    "<value>Text</value>" +
                                                "</textTab>" +
                                        "</textTabs>" +                     
                                "</tabs>" +                   
                            "</signer>" + 
                        "</signers>" + 
                    "</recipients>" +  
                "</envelopeDefinition>";

谢谢!

1 个答案:

答案 0 :(得分:0)

您需要为所需的每个数据选项卡将内部xml元素名称更改为<text>。所以改为:

"<textTabs>" +
    "<text>" +
    ...
相关问题