DustinEhle | Posts: 30

Adding additional fields to the evidence summary PDF

1 votes
Hi, I am wanting to add some extra fields to the evidence summary PDF that can be viewed after a signing session is complete. I have tried to follow the tutorial for Signer Session fields, but have not been able to get it to work (http://docs.e-signlive.com/mc/content/c_esignlive_integrator_s_guide/sdk/f_signing_documents/signer_session_management.htm#Signer). Is this possible to do? I am using the Java SDK v11.

harishaidary | Posts: 1812

Reply to: Adding additional fields to the evidence summary PDF

0 votes
Hi Dustin, Is your code throwing an error or is it simply not showing up in the evidence summary? Also, are you on the classic ui or new ui? (i.e. sandbox.e-signlive.com or sandbox.esignlive.com)

DustinEhle | Posts: 30

Reply to: Adding additional fields to the evidence summary PDF

0 votes
It just isn't showing up in the evidence summary. I am using the new UI, sandbox.esignlive.com

harishaidary | Posts: 1812

Reply to: Adding additional fields to the evidence summary PDF

0 votes
Alright. Let me run a few tests and I'll get back to you shortly.

harishaidary | Posts: 1812

Reply to: Adding additional fields to the evidence summary PDF

0 votes
For the session fields to appear in the evidence summary, you'll need to create a signer authentication token with the session fields and use that signer token to create a signing session. Once all documents have been signed and the package has been completed, you can download the evidence summary and view the session fields. Here's an example code that worked for me:
EslClient eslClient = new EslClient(MyInfo.API_KEY_SANDBOX, MyInfo.API_URL_SANDBOX);
		
		DocumentPackage pack = PackageBuilder.newPackageNamed("Test package!")
				.withSigner(SignerBuilder.newSignerWithEmail("[email protected]")
						.withFirstName("John")
						.withLastName("Smith")
						.withCustomId("signer1"))
				.withDocument(DocumentBuilder.newDocumentWithName("some doc")
						.fromFile("C:/Users/hhaidary/Desktop/PDFs/doc1.pdf")
						.withSignature(SignatureBuilder.captureFor("[email protected]")
								.atPosition(100, 100)
								.onPage(0)))
				.build();
		
		PackageId packageId = eslClient.createAndSendPackage(pack);
		
		Map signerSessionFields = new LinkedHashMap();
        signerSessionFields.put("somefieldkey", "tryingthisout......");
        final String signerAuthenticationToken = eslClient.getAuthenticationTokensService().createSignerAuthenticationToken(packageId.getId(), "signer1", signerSessionFields);
        
        System.out.println("https://sandbox.esignlive.com/access?sessionToken=" + signerAuthenticationToken);
Attached is my example evidence summary.

Attachments
DustinEhle | Posts: 30

Reply to: Adding additional fields to the evidence summary PDF

0 votes
Cool, I got this working. I did have one question though. Does the signerAutheticationToken expire after a certain period of time? We have a requirement that the session URL needs to expire within a certain timeframe. If not, is there a way to generate one that would expire?

harishaidary | Posts: 1812

Reply to: Adding additional fields to the evidence summary PDF

0 votes
By default, signer tokens expire after 30 mins once it has been used (i.e. opened a session using the token). You can change the duration of the token through support ([email protected]). Let me know if you have anymore questions =]

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