-->

的DocuSign - 使用API​​添加标签文档:它只会增加signhere标签,忽略所有其他(

2019-11-02 22:48发布

我想dateSingedTab,fullNameTab,signHereTab添加到我的文档。 当我发送文档,的DocuSign只添加signHereTab,而忽略其他选项卡。 这是我的XML。 能否请您帮忙。

<envelopeDefinition xmlns="http://www.docusign.com/restapi">
<emailSubject>API Call for adding signature request to document and sending</emailSubject>
 <status>sent</status>
            <documents>
            <document>
                <documentId>1</documentId>
                <name>documentName</name>
            </document>
            </documents>
            <recipients>
            <signers>
            <signer>
                <recipientId>1</recipientId>
                <email>custEmail</email>
                <name>recipientNameCust</name>
                <routingOrder>1</routingOrder>
            <tabs>        
    <dateSignedTabs>
    <dateSignedTab>
        <anchorString>SIGNED on behalf of the Customer</anchorString>
        <anchorXOffset>100</anchorXOffset>
        <anchorYOffset>300</anchorYOffset>
        <anchorIgnoreIfNotPresent>false</anchorIgnoreIfNotPresent>
        <anchorUnits>Pixels</anchorUnits>
        <documentId>1</documentId>
        <recipientId>1</recipientId>
        <tabLabel>Date Signed</tabLabel>
        <name>Date Signed</name>
      </dateSignedTab>
      </dateSignedTabs>
    <fullNameTabs>
    <fullNameTab>
      <anchorString>SIGNED on behalf of the Customer</anchorString>
      <anchorXOffset>100</anchorXOffset>
      <anchorYOffset>100</anchorYOffset>
      <anchorIgnoreIfNotPresent>false</anchorIgnoreIfNotPresent>
      <anchorUnits>Pixels</anchorUnits>
      <documentId>1</documentId>
      <recipientId>1</recipientId>
      <tabLabel>Full Name</tabLabel>
      <name>Full Name</name>
    </fullNameTab>
    </fullNameTabs>
            <signHereTabs>
            <signHere>
               <anchorString>SIGNED on behalf of the Customer</anchorString>
               <anchorXOffset>0</anchorXOffset>
               <anchorYOffset>50</anchorYOffset>
               <anchorIgnoreIfNotPresent>false</anchorIgnoreIfNotPresent>
               <anchorUnits>Pixels</anchorUnits>
               <documentId>1</documentId>
               <recipientId>1</recipientId>
               <tabLabel>Sign Here</tabLabel>
               <name>Sign Here</name>
            </signHere>
            </signHereTabs>
            </tabs>
            </signer>
            </signers>
            </recipients></envelopeDefinition>

我得到了错误的标签上面的XML。 我纠正他们,他们工作得很好。 dateSignedTab是不正确的,应该dateSigned。 此外fullNameTab是不正确的,应该是全名。 请忽略此职位。

Answer 1:

您需要删除tabs内部标签名称的一部分。 例如,对于dateSigned选项卡中的<xml>节点需要这个样子:

<dateSignedTabs>
    <dateSigned>
    ...
    </dateSigned>
</dateSignedTabs>

同样的事情与你的其他选项卡...全称标签需要设置是这样的:

<fullNameTabs>
    <fullName>
    ...
    </fullName>
</fullNameTabs>

给一个尝试,它应该工作。



文章来源: docusign - adding tabs to the document using API: It only adds signhere tab and ignores all other