您好我正在使用Docusign rest api。我有一个场景,我有三个字段需要由同一个人填写(2个文本和1个签名,所有这些都是可选的)。是否有办法使它们如果填写了一个文本字段,则必须要求签名?
我正在尝试使用“conditionalParentLabel”和“conditionalParentValue”来实现这个功能,但我不确定为“conditionalParentvalue”赋予什么值,以便为除了blank之外的所有文本输入激活所需的值。
答案 0 :(得分:0)
以下是适用于您的CreateEnvelope示例调用。
POST / v2 / accounts / {accountId} / envelope
{
"recipients": {
"signers": [
{
"email": "janedoe@yourdomain.com",
"name": "Jane Doe",
"recipientId": 1,
"tabs": {
"signHereTabs": [
{
"optional": "false",
"documentId": "1",
"pageNumber": "1",
"xPosition": "279",
"yPosition": "89",
"conditionalParentLabel": "Amount",
"conditionalParentValue": "##ANY##"
}
],
"textTabs": [
{
"height": 11,
"width": 78,
"required": "false",
"locked": "false",
"maxLength": 100,
"tabLabel": "Amount",
"documentId": "1",
"pageNumber": "1",
"xPosition": "117",
"yPosition": "119"
}
]
}
}
]
},
"emailSubject": "Requesting signature with conditional fields",
"documents": [
{
"documentId": "1",
"name": "Doc One",
"fileExtension": "txt",
"documentBase64": "RG9jIFRXTyBUV08gVFdP"
}
],
"status": "sent"
}