我有一个我需要签署的协议。在客户提供其公司和我们服务的付款信息后,将打开文档链接。如何从表单中将公司名称或帐单地址等值传递给文档?
现在客户点击"转到协议"它会调出文件。问题在于,他们将不得不在回声文档中重新输入他们刚刚在表格上提交的信息。
答案 0 :(得分:0)
您可以使用mergeFieldInfo 相同的Payload样本
{
"documentCreationInfo": {
"fileInfos": [
{
"libraryDocumentId": "xxxxxxxxxx"
}
],
"name": "xxxxxxxxxx xxxxxxxxxx",
"message": "Please sign the agreement",
"recipientSetInfos": [
{
"recipientSetRole": "SIGNER",
"recipientSetMemberInfos": [
{
"email": "xxxx@xxxx.com"
}
]
}
],
"signatureType": "ESIGN",
"signatureFlow": "SENDER_SIGNATURE_NOT_REQUIRED",
"mergeFieldInfo": [
{
"fieldName": "firstName",
"defaultValue": "xxxx"
},
{
"fieldName": "lastName",
"defaultValue": "xxxx"
},
{
"fieldName": "email",
"defaultValue": "xxxx@xxxx.com"
},
{
"fieldName": "phone",
"defaultValue": "xxxxxxxxxxxxxxxxx"
},
{
"fieldName": "companyName",
"defaultValue": "xxxx"
},
{
"fieldName": "companyAddresss",
"defaultValue": "xxxx xxxx"
}
],
"securityOptions": {
"passwordProtection": "NONE",
"kbaProtection": "NONE",
"webIdentityProtection": "NONE",
"protectOpen": false,
"internalPassword": "",
"externalPassword": "",
"openPassword": ""
}
},
"options": {
"noChrome": false,
"authoringRequested": false,
"autoLoginUser": false
}
}
答案 1 :(得分:0)
您可以使用POST /agreements API来实现此目的。此API调用的请求主体有一个名为" formFields"的可选参数,在此您可以在发送签名协议之前提供要在文档中嵌入的表单字段,您也可以通过以下方式自定义这些字段:为它们设置不同的属性,如location,defaultValue,readOnly等等。
对于用例,您可以在POST调用中创建协议时传递此可选参数,指定您在上一个陡峭中从用户获取的字段的默认值以及您希望该字段的确切位置放在文档上,如果您不希望用户更改这些字段,您甚至可以将它们标记为只读。
为了让您更方便PFB在POST通话中应提供的请求片段 -
{ " formFields":[{ " alignment":" LEFT", " borderStyle":" SOLID", " fontColor":"", " fontName":"", " borderColor":"", " displayLabel":"", " radioCheckType":" CIRCLE", " calculatedExpression":"", " backgroundColor":"#0715cd", " formatData":"", " displayFormat":"", " contentType":" DATA", "验证":false, "计算":false, " maxLength":-1, " locations":{ "身高":20, "宽度":20, " pageNumber":1, "离开":100, " top":100 }, " minLength":-1, " name":" Custom Field 2", " inputType":" TEXT_FIELD", " customDateFormat":"", " specialFormula":"", "必需":是的, " defaultValue":"", " minNumberValue":0, " maxNumberValue":0, " regularExpression":"", " showOrHide":" SHOW", " specialErrMsg":"", "格式":" NONE", " fontSize":-1, "蒙面":假, " anyOrAll":" ANY", " displayFormatType":" DEFAULT", "条件":{ "价值":"", " whenFieldLocationIndex":-1, " fieldName":"", " whenFieldName":"", "运营商":"" }, " validationRule":"无", " readOnly":false, " borderWidth":-1, "隐藏":错误, " visibleOptions":[], " hiddenOptions":[], "工具提示":"这是一个样本。", " recipientIndex":1 }] }