繁体   English   中英

如果在创建信封之前未提供收件人信息(签名者),是否无法使用自动锚标签?

[英]Is it impossible to use the Automated Anchor Tags if recipient info (signer) are not provided before creating envelope?

我正在使用嵌入式发送视图,以便用户可以根据自己的喜好完成DocuSign信封并将其发送。 我仅在打开Embedded Sender View之前要做的是通过REST API将他们想要的文档上传到DocuSign,并且根本不设置任何收件人信息。 一些上载文档具有锚标记,例如\\ s1 \\,\\ s2 \\等。 对于收件人,签署者或抄送,当用户位于“嵌入式发件人视图”中时,用户会提供该签名。

我想做的是,当用户使用嵌入式发件人视图中提供的收件人(而不是预定义的签名者信息)移动到“标记”视图时,显示带有“锚”标签替换为锚标签的文档。

根据我的测试,如果在创建信封之前,信封定义中没有提供签名者信息,似乎\\ s1 \\之类的锚标记将永远不会自动替换为“此处签名”选项卡。 当我创建签名者对象并仅为其设置收件人ID时,它仅与\\ s1 \\一起使用。 在我看来,在创建信封之前必须提供签名者才能使用自动放置功能。

以下代码是我用于测试的代码。 当我明确提供签名者时,“自动放置”功能仅与签名者1的锚标记一起使用,\\ s1 \\

        ...
        EnvelopeDefinition envelopeDefinition = new EnvelopeDefinition();
        envelopeDefinition.setEmailSubject("Please sign this document");

        envelopeDefinition.setEmailBlurb("Something");

        Document doc1 = new Document();
        doc1.setDocumentBase64(new String(Base64.encode(DSHelper.readContent("Sign here.docx"))));
        doc1.setName("Sign Here Test");
        doc1.setFileExtension("docx");
        doc1.setDocumentId("1");

        // The order in the docs array determines the order in the envelope
        envelopeDefinition.setDocuments(Arrays.asList(doc1));

        //When I provided the signer explicitly, 
        //the AutoPlace feature works only with the anchor tag for Signer 1, \s1\\
        //Otherwise, it doesn't work at all
        Signer signer1 = new Signer();
        signer1.setRecipientId("1");  //This is mandatory 

        // Add the recipients to the envelope object
        Recipients recipients = new Recipients();
        recipients.setSigners(Arrays.asList(signer1));

        envelopeDefinition.setRecipients(recipients);        

        // create a signer recipient to sign the document, identified by name and email
        // We're setting the parameters via the object creation
        EnvelopesApi envelopeApi = new EnvelopesApi(this.apiClient);
        EnvelopeSummary results = envelopeApi.createEnvelope(this.getAccountId(), envelopeDefinition);

        //Generate Embedded Sender View URL....and so on
        ...

更新我在嵌入式发送视图中提供了两个收件人,如下图所示,但是在嵌入式发送视图上单击“下一步”后,在标记视图中只有一个\\ s1 \\标签被替换为在此处签名。

这是使用上面的代码的嵌入式发送视图

这是文档预览,上面的代码在Tagging视图中

有没有最好的办法来解决我的问题?

由于无论如何都是将信封创建为草稿,因此实际上不需要定义第二个签名者的姓名和电子邮件。 当发件人访问信封时,他们可以填写空的名称和电子邮件,它将与集成已放置的标签相关联。

一种方法是使用模板。 模板可以具有不包含收件人信息的占位符,但允许您为这些最终收件人使用标签。 您可以从模板创建信封,此时必须提供实际的收件人信息(姓名和电子邮件)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM