PDF with multiple Signature Capture Fields - some of which are optional
Friday, May 20, 2016 at 12:13pmHi
Given that a PDF can accommodate multiple Signatures where some of them may not be required , how can I format my JSON so that it does not crash?
Using the sample PDF in https://developer.esignlive.com/forums/topic/simulating-rest-workflow-using-soapui/ where it is a form with a possibility of having 2 applicants - hence 2 signers. On this PDF I've therefore defined 2 possible Signature fields. This PDF is a template which is saved with controls which are merged at runtime, the signature is then processed through eSignLive, so i assumed that wherever there is a Signature, I need to define the special Tags [Signer1.Capture#] in the PDF.
Let's say, my application merges the information of that applicant from our database and only consist of 1 applicant out of the possible 2 Applicants ( and Signatures ) on the PDF.
Hence the following JSON with only one signer:
payload:{"sender":{"email":"[email protected]"},"settings":{"ceremony":{"events":{"complete":{"dialog":true,"redirect":"https://www.google.ca"}},"inPerson":true,"declineButton":true,"declineReasons":["Reason 1","Reason 2","No Reason"],"disableDeclineOther":false,"disableDownloadForUncompletedPackage":false,"disableFirstInPersonAffidavit":true,"disableInPersonAffidavit":false,"disableOptOutOther":false,"disableSecondInPersonAffidavit":true,"documentToolbarOptions":{"downloadButton":true},"handOver":{"title":"You will be redirected to Technicost homepage","href":"http://www.technicost.com","text":"Exit to Technicost site"},"hideCaptureText":false,"hideLanguageDropdown":true,"hidePackageOwnerInPerson":true,"hideWatermark":true,"maxAuthFailsAllowed":3,"optOutButton":true,"optOutReasons":["Reason 1","Reason 2"],"style":null,"layout":{"footer":{},"iframe":true,"navigator":true,"brandingBar":{"logo":{"src":"http://www.technicost.com/images/logo.gif","link":""}},"header":{"feedback":true,"globalActions":{"confirm":true,"download":false,"hideEvidenceSummary":false,"saveAsLayout":false},"titleBar":{"title":true,"progressBar":true},"breadcrumbs":false,"globalNavigation":false,"sessionBar":true}}}},"roles":[{"locked":false,"emailMessage":{"content":"roles1.emailMessage.content 1 JSON Sample email"},"attachmentRequirements":[],"reassign":false,"specialTypes":[],"id":"Signer1","data":null,"type":"SENDER","index":0,"signers":[{"auth":{"challenges":[],"scheme":"NONE"},"company":"Technicost Inc","firstName":"Roles.Signer 1 FName","lastName":"W.","phone":"","email":"[email protected]","knowledgeBasedAuthentication":null,"language":"en","title":"Lead Architect","external":null,"professionalIdentityFields":[],"userCustomFields":[],"delivery":{"email":true,"provider":false,"download":true},"group":null,"signature":null,"address":null,"data":null,"name":"","specialTypes":[]}],"name":"roles1.name – CYRIL"}],"documents":[{"approvals":[],"extract":true,"name":"ESLDocumentWithFormFieldsWithTwoSignatures"}],"name":"root Package Name","type":"PACKAGE","language":"en","emailMessage":"","description":"root description","autoComplete":true,"status":"SENT"}
When I run this, it gives me an error
{"messageKey":"error.validation.extractingFields","entity":null,"technical":"Package: e40975e6-fe8d-4d94-a00b-448e21a6fe48 Document: 6d658e3f8e3fae6e, Errors: [Could not find extract info role: SignerId2]","packageId":null,"code":400,"message":"Unable to extract PDF fields from this document.","name":"Validation Error"}
How can I achieve this?
ie: Given all my forms have placeholders for multiple Applicants ( where each applicant will have a pre defined SIgnature field at the end of the form corresponding to the Number of applicants in a given transaction.) .
Reply to: PDF with multiple Signature Capture Fields - some of which are optional
Wednesday, May 25, 2016 at 04:30pmReply to: PDF with multiple Signature Capture Fields - some of which are optional
Saturday, May 21, 2016 at 03:09pmReply to: PDF with multiple Signature Capture Fields - some of which are optional
Tuesday, May 24, 2016 at 04:33amReply to: PDF with multiple Signature Capture Fields - some of which are optional
Tuesday, May 24, 2016 at 06:19amReply to: PDF with multiple Signature Capture Fields - some of which are optional
Tuesday, May 24, 2016 at 09:32amhttps://sandbox.esignlive.com/api/packages/{packageId}/roles/{roleId}This will remove all fields for the second signer from the document as well, so nothing needs to be done, there. From there, you simply need to send the package, which should be done by sending a PUT request to:https://sandbox.esignlive.com/api/packages/{packageId}with a JSON payload of:{ "status": "SENT" }I didn't create a full example since it is pretty much only 2 lines. If you need more detail, let me know and I can put an example in the code share in whatever language you're using REST in. Let me know. :)Reply to: PDF with multiple Signature Capture Fields - some of which are optional
Tuesday, May 24, 2016 at 10:36amReply to: PDF with multiple Signature Capture Fields - some of which are optional
Tuesday, May 24, 2016 at 11:12amReply to: PDF with multiple Signature Capture Fields - some of which are optional
Tuesday, May 24, 2016 at 11:23amReply to: PDF with multiple Signature Capture Fields - some of which are optional
Tuesday, May 24, 2016 at 12:48pmReply to: PDF with multiple Signature Capture Fields - some of which are optional
Tuesday, May 24, 2016 at 03:57pmReply to: PDF with multiple Signature Capture Fields - some of which are optional
Tuesday, May 24, 2016 at 04:05pmReply to: PDF with multiple Signature Capture Fields - some of which are optional
Tuesday, May 31, 2016 at 09:01amReply to: PDF with multiple Signature Capture Fields - some of which are optional
Tuesday, May 31, 2016 at 10:19amReply to: PDF with multiple Signature Capture Fields - some of which are optional
Friday, July 21, 2017 at 12:25pmReply to: PDF with multiple Signature Capture Fields - some of which are optional
Monday, August 7, 2017 at 05:22amReply to: PDF with multiple Signature Capture Fields - some of which are optional
Monday, August 7, 2017 at 05:28amReply to: PDF with multiple Signature Capture Fields - some of which are optional
Tuesday, August 8, 2017 at 11:40amReply to: PDF with multiple Signature Capture Fields - some of which are optional
Tuesday, August 29, 2017 at 04:46pm