[英]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 \\標簽被替換為在此處簽名。
有沒有最好的辦法來解決我的問題?
由於無論如何都是將信封創建為草稿,因此實際上不需要定義第二個簽名者的姓名和電子郵件。 當發件人訪問信封時,他們可以填寫空的名稱和電子郵件,它將與集成已放置的標簽相關聯。
一種方法是使用模板。 模板可以具有不包含收件人信息的占位符,但允許您為這些最終收件人使用標簽。 您可以從模板創建信封,此時必須提供實際的收件人信息(姓名和電子郵件)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.