I'm trying to create an envelope in docusign with the checkbox will be mandatory. I tried to apply it by using a Tab Groups tab. Below is my request. I'm able to create a document but the checkboxes are still optional. I'm not sure what's wrong in may request: Please check. Thank you.
{
"documents":[
{
"documentBase64":"<pdffile>",
"documentId":"1",
"fileExtension":"pdf",
"name":"Document_Name"
}
],
"emailSubject":"Some Email Subject",
"recipients":{
"signers":[
{
"email":"some.user@gmail.com",
"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"
}
UPDATE:
I tried this in my request and still, the checkbox remained optional.
"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"
}
]
}
I'm using version 2.1, /restapi/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}
Thank you in advance.
pageNumber
anddocumentId
attributes from thetabGroups
array.... – Larry K