5 Replies Latest reply on Jul 25, 2011 11:44 AM by SForrest96

    Looking for xfa.signature.sign/verify example with all parameters used


      Hello all,


      I'm trying to extract information from a data signature to copy into another field.


      I can access the data signatures in the document through the enumerate method:
      var oSigs = xfa.signature.enumerate();
      var iNum = oSigs.length;

      for (var i=0; i < iNum; i++)
           var oChild = oSigs.item(i);

          // Display dialog box.
           var iVerify = xfa.signature.verify(oChild,"1");

          xfa.host.messageBox("Validity of signature integer value: " +


      What I'd really like to do is specify an output SignatureInfo object in the "sign" operation so that I can extract the common name of the signer, date, certificate, etc.... through the signatureInfo() method.


      Syntax is:

      Reference_Syntax.sign( OBJECT param1, STRING param2, STRING param3 [, STRING param4 [, BOOLEAN param5 [, OBJECT param6 [, OBJECT
      param7 ] ] ] ] )  where param7 "Represents an output SignatureInfo object containing the writable properties of the signature."

      (From http://help.adobe.com/en_US/livecycle/9.0/designerHelp/001413.html#10...)


      I have not found an example that includes any of the optional parameters.


      Can anyone help with this?