79177946

Date: 2024-11-11 14:03:02
Score: 1
Natty:
Report link

I am using a composite template with the customfields specified in the inline template but they are not picked up and I get error that says they are missing.

envelope: { "emailSubject": "Electronic signature", "emailBlurb": "Please sign the documents", "compositeTemplates": [{ "document": { "documentBase64": "xxx", "name": "form", "fileExtension": "pdf", "documentId": 1 }, "serverTemplates": [{ "sequence": 1, "templateId": "f94ccf52-de90-4904-b330-310fac1169a8" } ], "inlineTemplates": [{ "sequence": 2, "customFields": { "textCustomFields": [{ "name": "contractNumber", "required": true, "show": true, "value": "2966" } ] }, "recipients": { "signers": [{ "email": "[email protected]", "name": "Marie-Claire xxx_38541", "recipientId": 1, "tabs": { "signHereTabs": [{ "documentId": 2, "pageNumber": 1, "xPosition": 72, "yPosition": 160 }, { "anchorString": "\s1\", "anchorIgnoreIfNotPresent": true } ], "dateSignedTabs": [{ "documentId": 2, "pageNumber": 1, "xPosition": 132, "yPosition": 160 } ], "fullNameTabs": [{ "documentId": 2, "pageNumber": 1, "xPosition": 132, "yPosition": 170 } ] }, "recipientSignatureProviders": [{ "signatureProviderName": "UniversalSignaturePen_OpenTrust_Hash_TSP", "signatureProviderOptions": { "sms": "+334444444" } } ], "roleName": "Signataire 1" } ], "carbonCopies": [] } } ] }, { "document": { "documentBase64": "xxx", "name": "testDoc-4.pdf", "fileExtension": "pdf", "documentId": 2 }, "serverTemplates": [{ "sequence": 1, "templateId": "f94ccf52-de90-4904-b330-310fac1169a8" } ] } ], "status": "sent" }

Response

{ "errorCode": "ENVELOPE_CUSTOM_FIELD_MISSING", "message": "A required envelope custom field is missing. The custom field 'contractNumber' requires a value." }

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ali