DocuSign: Diperlukan kotak centang
Saya mencoba membuat amplop di docusign dengan kotak centang wajib. Saya mencoba menerapkannya dengan menggunakan tab Grup Tab. Di bawah ini adalah permintaan saya. Saya dapat membuat dokumen tetapi kotak centangnya masih opsional. Saya tidak yakin apa yang salah dalam mungkin meminta: Silakan periksa. Terima kasih.
{
"documents":[
{
"documentBase64":"<pdffile>",
"documentId":"1",
"fileExtension":"pdf",
"name":"Document_Name"
}
],
"emailSubject":"Some Email Subject",
"recipients":{
"signers":[
{
"email":"[email protected]",
"name":"Some People",
"recipientId":"4250",
"routingOrder":"1",
"tabs":{
"signHereTabs":[
{
"anchorString":"PLEASE SIGN HERE",
"anchorXOffset":"0",
"anchorYOffset":"1.5",
"anchorUnits":"cms"
}
],
"checkboxTabs":[
{
"tabLabel":"checkbox1",
"selected":"false",
"required":"false",
"documentId":"1",
"recipientId":"1",
"anchorString":"[x]",
"anchorXOffset":"0",
"anchorYOffset":"0",
"anchorUnits":"cms",
"tabGroupLabels":["Checkbox Group"]
},
{
"tabLabel":"checkbox2",
"selected":"false",
"required":"false",
"documentId":"1",
"recipientId":"1",
"anchorString":"[x]",
"anchorXOffset":"0",
"anchorYOffset":"1",
"anchorUnits":"cms",
"tabGroupLabels":["Checkbox Group"]
}
],
"tabGroups":[
{
"recipientId":"1",
"tabLabel":"Check Boxes",
"groupLabel":"Checkbox Group",
"groupRule":"SelectAtMost",
"maximumAllowed" :"1",
"minimumRequired":"0",
"validationMessage":"Please check a box",
"tabScope":"Document",
"locked":"false"
}
]
}
}
]
},
"status":"sent"
}
MEMPERBARUI:
Saya mencoba ini dalam permintaan saya dan tetap, kotak centang tetap opsional.
"tabs":{
"signHereTabs":[
{
"anchorString":"PLEASE SIGN HERE",
"anchorXOffset":"0",
"anchorYOffset":"1.5",
"anchorUnits":"cms"
}
],
"checkboxTabs":[
{
"anchorString":"[x]",
"anchorXOffset":"0",
"anchorYOffset":"0",
"anchorUnits":"cms",
"tabGroupLabels":[
"Checkbox Group"
]
}
],
"tabGroups":[
{
"groupLabel":"Checkbox Group",
"groupRule":"SelectAtLeast",
"maximumAllowed":"1",
"minimumRequired":"1",
"validationMessage":"Please check a box",
"tabScope":"document"
}
]
}
Saya menggunakan versi 2.1, /restapi/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}
Terima kasih sebelumnya.
Jawaban
The requiredatribut untuk kotak centang tidak berlaku. Sebagai gantinya buatlah tabGroupuntuk kotak centang atau kotak centang. Dengan cara itu Anda dapat meminta agar kotak centang dicentang, atau mengharuskan salah satu dari beberapa kotak centang dicentang, dll.
Contoh: satu kotak centang wajib
{
"emailSubject": "Please sign the attached document",
"status": "sent",
"documents": [
{
"documentBase64":"<pdffile>",
"name": "Example document",
"fileExtension": "pdf",
"documentId": "1"
}
],
"recipients": {
"signers": [
{
"email": "[email protected]",
"name": "Signer's name",
"recipientId": "1",
"clientUserId": "1000",
"tabs": {
"signHereTabs": [
{
"anchorString": "/sig1/",
"anchorXOffset": "20",
"anchorUnits": "pixels"
}
],
"checkboxTabs": [
{
"anchorString": "/sig1/",
"anchorXOffset": "180",
"anchorUnits": "pixels",
"tabGroupLabels": [
"checkbox group"
]
}
],
"tabGroups": [
{
"groupLabel": "checkbox group",
"groupRule": "SelectAtLeast",
"minimumRequired": "1",
"maximumAllowed": "1",
"validationMessage": "Please check to indicate your agreement",
"tabScope": "document",
"pageNumber": "1",
"documentId": "1"
}
]
}
}
]
}
}