Closed yuyu414 closed 2 years ago
Why no preset information is generated
@yuyu414 You are not able to set the value of prefillTabs when creating an envelope. You will need to use ordinary textTabs to accomplish setting a text value when creating an envelope. In your template, you can set these textTabs to read-only if you wish to keep the text value fixed.
@yuyu414 You are not able to set the value of prefillTabs when creating an envelope. You will need to use ordinary textTabs to accomplish setting a text value when creating an envelope. In your template, you can set these textTabs to read-only if you wish to keep the text value fixed.
Modification to this still does not take effect, how can I access it?
@yuyu414 - I was able to create a simple text tab in my own app using the following code:
Text text = new Text();
text.setDocumentId("1");
text.setPageNumber("1");
text.setXPosition("191");
text.setYPosition("348");
text.setName("textTab1");
text.setValue("this is the value of the text tab");
Tabs tabs = new Tabs();
tabs.setTextTabs(Arrays.asList(text));
I tried to use your code, but don't know what the 'WorkArguments' object is, so can't run the code. It does look like you are using the correct setter methods on the 'text' object, but I suspect you are not getting or setting your Template correctly, which would mean the 'tabs.setTabLabel' isn't mapping to a template tab.
@yuyu414- 我能够使用以下代码在我自己的应用程序中创建一个简单的文本选项卡:
Text text = new Text(); text.setDocumentId("1"); text.setPageNumber("1"); text.setXPosition("191"); text.setYPosition("348"); text.setName("textTab1"); text.setValue("this is the value of the text tab"); Tabs tabs = new Tabs(); tabs.setTextTabs(Arrays.asList(text));
我尝试使用您的代码,但不知道“WorkArguments”对象是什么,因此无法运行代码。看起来您在“文本”对象上使用了正确的 setter 方法,但我怀疑您没有正确获取或设置模板,这意味着“tabs.setTabLabel”没有映射到模板选项卡。
I have solved it thanks
@yuyu414 你好,遇到跟你一样的问题。想从模板里写预填充字段值,请问最后是怎么解决的?hello, I have the same problem as you. I want to write the pre-filled field value from the template. What is the final solution?
@yuyu414 你好,遇到跟你一样的问题。想从模板里写预填充字段值,请问最后是怎么解决的?hello, I have the same problem as you. I want to write the pre-filled field value from the template. What is the final solution?
你的代码贴出来,注意模板的rolename的和代码里的rolename要对应上
@yuyu414 你好,遇到跟你一样的问题。想从模板里写预填充字段值,请问最后是怎么解决的?hello, I have the same problem as you. I want to write the pre-filled field value from the template. What is the final solution?
你的代码贴出来,注意模板的rolename的和代码里的rolename要对应上
TemplateRole signer = new TemplateRole();
signer.setEmail(signerEmail);
signer.setName(signerName);
signer.setRoleName("甲方");
// 甲方预填充字段标签:a5045fac-9679-498a-a73c-6c255dfccc49
Tabs tabs = new Tabs();
PrefillTabs prefillTabs = new PrefillTabs();
List<Text> textTabs = new ArrayList<>();
Text text = new Text();
text.setValue("djdj");
text.setTabLabel("a5045fac-9679-498a-a73c-6c255dfccc49");
text.setDocumentId("1");
text.setPageNumber("1");
textTabs.add(text);
prefillTabs.setTextTabs(textTabs);
tabs.setPrefillTabs(prefillTabs);
signer.setTabs(tabs);
@yuyu414 模板的rolename的和代码里的rolename是一样的
@yuyu414 你好,遇到跟你一样的问题。想从模板里写预填充字段值,请问最后是怎么解决的?hello, I have the same problem as you. I want to write the pre-filled field value from the template. What is the final solution?
你的代码贴出来,注意模板的rolename的和代码里的rolename要对应上
TemplateRole signer = new TemplateRole(); signer.setEmail(signerEmail); signer.setName(signerName); signer.setRoleName("甲方"); // 甲方预填充字段标签:a5045fac-9679-498a-a73c-6c255dfccc49 Tabs tabs = new Tabs(); PrefillTabs prefillTabs = new PrefillTabs(); List<Text> textTabs = new ArrayList<>(); Text text = new Text(); text.setValue("djdj"); text.setTabLabel("a5045fac-9679-498a-a73c-6c255dfccc49"); text.setDocumentId("1"); text.setPageNumber("1"); textTabs.add(text); prefillTabs.setTextTabs(textTabs); tabs.setPrefillTabs(prefillTabs); signer.setTabs(tabs);
@yuyu414 模板的rolename的和代码里的rolename是一样的
看你的web页面的模板编辑一下 看一下那里面会设置签发的rolename 看看是不是甲方?
@yuyu414 你好,遇到跟你一样的问题。想从模板里写预填充字段值,请问最后是怎么解决的?hello, I have the same problem as you. I want to write the pre-filled field value from the template. What is the final solution?
你的代码贴出来,注意模板的rolename的和代码里的rolename要对应上
TemplateRole signer = new TemplateRole(); signer.setEmail(signerEmail); signer.setName(signerName); signer.setRoleName("甲方"); // 甲方预填充字段标签:a5045fac-9679-498a-a73c-6c255dfccc49 Tabs tabs = new Tabs(); PrefillTabs prefillTabs = new PrefillTabs(); List<Text> textTabs = new ArrayList<>(); Text text = new Text(); text.setValue("djdj"); text.setTabLabel("a5045fac-9679-498a-a73c-6c255dfccc49"); text.setDocumentId("1"); text.setPageNumber("1"); textTabs.add(text); prefillTabs.setTextTabs(textTabs); tabs.setPrefillTabs(prefillTabs); signer.setTabs(tabs);
@yuyu414 模板的rolename的和代码里的rolename是一样的
看你的web页面的模板编辑一下 看一下那里面会设置签发的rolename 看看是不是甲方?
预填充文本不是不能选择收件人吗?
有的,角色都有
那我不知道了 你可以下载一下demo项目跑一下
demo里没有预填充的例子。你最后用的是PrefillTabs 还是 textTabs ?
@yuyu414 可以发下你那边的代码example吗?我本地对比下看看
I want to send an envelope via the template, but the pre-submit tab doesn't work, I uploaded the document and set the template here, but the files in the template are preset. For example, there is a company name in my official document. I need to set it in advance and let the user sign it. The following code is invalid. `package com.docusign.jwtconsoleapp;
import com.docusign.esign.model.PrefillTabs; import com.docusign.esign.model.TemplateRole; import com.docusign.esign.model.Text;
import com.docusign.esign.api.EnvelopesApi; import com.docusign.esign.client.ApiClient; import com.docusign.esign.client.auth.OAuth.OAuthToken; import com.docusign.esign.client.auth.OAuth.UserInfo; import com.docusign.esign.client.ApiException; import com.docusign.esign.model.EnvelopeDefinition; import com.docusign.esign.model.EnvelopeSummary; import com.docusign.esign.model.Tabs;
import java.nio.file.Files; import java.nio.file.Paths; import java.util.; import java.io.;
/**
public class JWTConsoleApp {
}`