willm1716

Generate a date off the signing date

0 votes
When I send a document to be signed, I'd like to auto populate a date field that is 30 days after the signing date. Is this possible with the SDK?

Reply to: Generate a date off the signing date

0 votes
Unfortunately, that it is not possible. Not unless you have a dummy second signer and prefill a label field or textfield for example.
Haris Haidary OneSpan Technical Consultant

Reply to: Generate a date off the signing date

0 votes
How would the dummy signer would work? I'm not sure I get it. So here's the situation we'd like to support: There are two signers, the Customer and the Company 1) Company sends documents to Customer - They sign it. 2) I don't really want a person in the company to have to open and sign the document. I'm hoping to use client.SignDocuments(pID, companySignerID) so they are auto-signed by the company. Not sure if that's possible or not though. I've been trying it but seem to get errors. There is an 'Effective Date' for the document which is 30 days after being signed by the customer. We need the 'Effect Date' to be calculated off the date the customer signed it +30 days. So if they signed it on 11/1/2017 the 'Effective date' would populate with 11/30/2017. It doesn't have to be a date field. It could be a label or a field. With the dummy signer, how would we do this? How could we calculate the date and add it to a label, field or whatever? Thanks!!!

Reply to: Generate a date off the signing date

0 votes
Hi Will, Sorry for the late reply. Your use case is definitely doable in eSignLive. Since you have two signers, you won't be needing a dummy signer. However, you'll be looking to use the .NET SDK in conjunction with the REST API. Here's what you'll be looking to do: 1. Create your package with two signers (Customer and Company). In your package, add a textfield assigned to your Company signer where you want the date 30 days from signed to be. 2. Once the customer signs, you will update the value of the textfield. To this, you will first need to create a session for the Company signer:
string signerToken = eslClient.AuthenticationTokenService.CreateSignerAuthenticationToken(new PackageId("packageId"), "signerId");

AuthenticationClient authClient = new AuthenticationClient("https://sandbox.esignlive.com");

string sessionId = authClient.GetSessionIdForSignerAuthenticationToken(signerToken);
Then, you use the sessionId as Cookie header to make the following REST call:
POST https://sandbox.esignlive.com/api/packages/{packageId/documents/{documentId}/approvals/{approvalId}/fields/{fieldId}

Headers:

Cookie ESIGNLIVE_SESSION_ID={sessionId}
Content-Type application/json

{
  "value": "date 30 days from signing date here"
}
3. Finally, you can use the signDocuments() to sign the signatures for the Company signer.
Haris Haidary OneSpan Technical Consultant

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