1 Reply Latest reply on May 22, 2014 11:56 AM by George_Johnson

    Is javascript different in Acrobat Pro versions CS3 and X?

    1HeacoxCard

      Version 8.  However, I recently updated to Acrobat X Pro and the script that I have doesn't work now.  The form itself still is fine, just the script for the textbox doesn't work.

       

      Here is the script:

       

       

      var digSig = event.target.getField("topmostSubform[0].Page1[0].AUTHORIZED_APPROVERS_SIGNATURE[0]");

       

      var sigInfo = digSig.signatureInfo();

       

      if (digSig) {

       

      var status = digSig.signatureValidate();

       

      var message = "";

       

      switch (status) {

       

      case 0:

       

      case 1:

       

      message = "NOT SIGNED";

       

      break;

       

      case 2:

       

      message = "INVALID SIGNATURE";

       

      break;

       

      case 3:

       

      message = "VALID BUT IDENTITY OF SIGNER CANNOT BE VERIFIED";

       

      break;

       

      case 4:

       

      message = "VALID SIGNATURE";

       

      break;

       

      default:

       

      message = "ERROR";

       

      break;

       

      this.rawValue = "SIGNATURE STATUS: " + message;

       



      And here is the error message I receive when loading the form within acrobat.


      Capture.PNG

      Thanks kindly!