stuladhar | Posts: 27

How to send the bulk Fields value to eSignLive via POST method

0 votes
I have a document that has got like 200 fields. I have made a web page that contains a web form with all those 200 fields. When user submits the form I would want all the fields to be populated in the eSignLive form. Is this possible via eSignLive API without having to post individual field values to eSignLive. I want something like this that could solve by problem document.forms[0].method = "POST"; document.forms[0].action = urlESignLive; document.forms[0].submit(); I don't want something like this where I have type each and every field name in the code . That would take us a lot of time. var jsonPayload = '{ "roles": [ { "id": "Signer1", "type": "SIGNER", "signers": [ { "firstName": "' + fields.firstName + '", "lastName": "' + fields.lastName+ '", "email": "' + fields.emailAddress + '", "id": "Signer1" } ] }, { "id": "Sender1", "type": "SIGNER", "signers": [ { "firstName": "Haris", "lastName": "Haidary", "email": "[email protected]", "id": "Sender1" } ] } ], "documents": [ { "fields": [ { "value": "' + fields.firstName + '", "name": "first_name" }, { "value": "' + fields.lastName + '", "name": "last_name" }, { "value": "' + fields.address + '", "name": "address" }, { "value": "' + fields.city + '", "name": "city" }, { "value": "' + fields.zip + '", "name": "zip" }, { "value": "' + fields.state + '", "name": "state" }, { "value": "' + fields.country + '", "name": "country" }, { "value": "' + fields.phoneNumber + '", "name": "phone_number" }, { "value": "' + fields.emailAddress + '", "name": "email" }, { "value": "' + fields.company + '", "name": "company" }, { "value": "' + fields.policyNumber + '", "name": "policy_number" } ], "name": "Sample Contract", "id" : "contract", "extract": true } ], "name": "NodeJS Example", "type": "PACKAGE", "status": "SENT" }'; Is it something that we can achieve from eSignLive API. Thanks, Sumit

harishaidary | Posts: 1812

Reply to: How to send the bulk Fields value to eSignLive via POST method

0 votes
Hey Sumit, You definitely can populate the data entered by your user in your web application on your document. One way to do so is to use the injected fields feature. The field injection feature stamps values directly onto the document when uploading. I'm not sure what technology you are implementing, but I've posted a couple of blogs about how to create a simple web form application. Here are the links: https://www.esignlive.com/blog/esignlive-how-to-creating-a-simple-node-js-web-application/ https://www.esignlive.com/blog/esignlive-how-to-creating-a-simple-php-web-application/ https://www.esignlive.com/blog/esignlive-how-to-creating-a-simple-java-web-application-2/ https://www.esignlive.com/blog/esignlive-how-to-creating-a-asp-net-mvc-web-application/ Regards,

stuladhar | Posts: 27

Reply to: How to send the bulk Fields value to eSignLive via POST method

0 votes
Hi williams, This is exactly what I am talking about $.ajax({ url: 'http://example.com/', type: 'PUT', data: '$('#myform').serializeArray() success: function() { alert('PUT completed'); } }); Does eSignLive support the above where the url is the string string generatedLinkToSigningSession = eslClient.PackageService.GetSigningUrl(packageId, signer1Id); It would be helpful if this kind of post is supported. Please let me know if this possible. Thanks, Sumit

harishaidary | Posts: 1812

Reply to: How to send the bulk Fields value to eSignLive via POST method

0 votes
Okay, I have better understanding of what you are trying to accomplish. Basically, you will need to use the document extraction feature in order to extract the form fields in your PDF when uploading your document. The document extraction feature automatically creates all signatures and fields that exist in an uploaded PDF file. The positions and sizes of the signatures and fields in the PDF file are automatically retained in eSignLive. You will, however, have to name your fields in your PDF to eSignLive's convention. You can find more information about document extraction, here: https://developer.esignlive.com/guides/feature-guides/document-extraction/

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off