These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

SignatureInfo object in dynamic forms created by Designer ES

csommer
Registered: Jun 11 2006
Posts: 28
Answered

I'm trying to access the SignatureInfo object of a signature field in a dynamic form. This simply does not seem to be available. Only if I save the exact same form as a static form does it become available.

I'm referencing the signature field using the Acroform getField() method, and creating the object by calling the signatureInfo() method. From this I check the "status" property to determine whether the signature field has been signed correctly, which, if it has, can then be submitted to a server. This script sits in a custom submit button.

var getSigField = event.target.getField("form1[0].subform1[0].sigField1[0]");
var sigStatus = getSigField.signatureInfo().status;

This script has served me well for a long period, and its only now that I've attempted to use it in a dynamic form created in Designer ES 8.1, that I get the error that "sigStatus" has no properties in the console. If I save the form from dynamic to static, it works. If I open the exact same form in Designer 8.0, and save it as a dynamic PDF from there, then this script works perfectly too.

Does anyone know what has happened between Designer 8.0 and Designer ES 8.1, that the SignatureInfo object is no longer working in dynamic forms?

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
It's isn't that easy to use the signatureValidate() method in a xfa-form.

Read the thread of Stefan Camerons blog. He described how to do this.

[url]http://forms.stefcameron.com/2008/11/05/digital-signature-field-status/[/url]

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

csommer
Registered: Jun 11 2006
Posts: 28
The signatureValidate() method works well in ES 8.1, and it was pretty simple. Compared to the code in the first post all I needed to to was this:

var getSigField = event.target.getField("form1[0].subform1[0].sigField1[0]");
var sigStatus =getSigField.signatureValidate();

Thanks.