Possible to Associate Fields to Signers with the Java SDK?Wednesday, January 13, 2021 at 06:51pm
I'm wondering if it is possible to associate fields with signers using the Java SDK? My use case is that in addition to a signature, users need to be able to fill in additional information in a textbox.
From the examples I've found the fields always appear to be associated directly with a signature.
For example, from https://community.onespan.com/documentation/onespan-sign/guides/feature-guides/developer/using-text-anchors There is this code which adds the fields via the signature builder
.withPositionAnchor(TextAnchorBuilder.newTextAnchor("Signature of the Client")
.withPositionAnchor(TextAnchorBuilder.newTextAnchor("(hereafter referred to as")
Another example I've seen uses the eslClient.getApprovalService.addField() method, but it also requires a signatureId.
From looking around the answer on this post seems to indicate that it is possible through the REST api: https://community.onespan.com/forum/how-add-text-field-pdf-while-creating-package but I'm not sure how to communicate this in the Java SDK?
The reason I'd like to assign the fields to signers instead of signatures is because the product I'm working on uses the notation like [signer1.Capture1] directly in the PDF fields and I don't believe it is possible to get the signature ids when using this approach?
Thanks for any help.