Docusignapi 自定义选项卡未通过API调用发布到模板上
我正在为NodeJS使用docusignsdk,下面是我在NodeJS github示例中遵循的示例代码Docusignapi 自定义选项卡未通过API调用发布到模板上,docusignapi,docusigncompositetmplts,Docusignapi,Docusigncompositetmplts,我正在为NodeJS使用docusignsdk,下面是我在NodeJS github示例中遵循的示例代码 let taxYear = docusign.Text.constructFromObject({ customTabId:"taxYear", tabLabel: "taxYear", value:"2018" }) let signer1Tabs = docusign.Tabs.constructFr
let taxYear = docusign.Text.constructFromObject({
customTabId:"taxYear",
tabLabel: "taxYear",
value:"2018"
})
let signer1Tabs = docusign.Tabs.constructFromObject({
textTabs: [taxYear]
})
// Create a signer recipient for the signer role of the server template
let signer1 = docusign.Signer.constructFromObject({
email: args.signerEmail,
name: args.signerName,
roleName: "signer",
recipientId: "1",
// Adding clientUserId transforms the template recipient
// into an embedded recipient:
clientUserId: "1",
tabs: signer1Tabs
});
// Create the cc recipient
let cc1 = docusign.CarbonCopy.constructFromObject({
email: args.ccEmail,
name: args.ccName,
roleName: "cc",
recipientId: "2"
});
// Recipients object:
let recipientsServerTemplate = docusign.Recipients.constructFromObject({
carbonCopies: [cc1], signers: [signer1], });
// create a composite template for the Server Template
let compTemplate1 = docusign.CompositeTemplate.constructFromObject({
compositeTemplateId: "1",
serverTemplates: [
docusign.ServerTemplate.constructFromObject({
sequence: "1",
templateId: args.templateId
})
],
// Add the roles via an inlineTemplate
inlineTemplates: [
docusign.InlineTemplate.constructFromObject({
sequence: "1",
recipients: recipientsServerTemplate
})
]
})
// create the envelope definition
let env = docusign.EnvelopeDefinition.constructFromObject({
status: "sent",
compositeTemplates: [compTemplate1]
})
return env;
我有自定义文本字段,标签标签为taxYear,但我没有看到它在信封发出时被张贴在表单中
这是我收到的消息
不知道我错过了什么 您使用的Taxfield似乎没有X/Y位置或锚定字符串,因此我们的系统不知道将其放置在何处 对于要添加的这些字段,您需要提供
documentId
(如果使用x/y坐标)、recipientId
、tabLabel
,以及放置它的x/y位置或锚定字符串
如果添加这些似乎不起作用,请使用taxYear选项卡的特定参数编辑您的评论,我们可以再看一看