Expand my Community achievements bar.

Javascript Different in CS3 vs. CSX?

Avatar

Level 1

Hi, is JavaScript different for acrobat verison CS3 Version 8 vs. X PRO - version 10?  I use online forms that users submit for clearance access.  I have been using Acrobat verison CS3, 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.  The textbox indicates authorized signer status.  The form is locked after signing, except for this textbox which should be able to change...

I'm stumped..

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


Thank you kindly.

10 Replies

Avatar

Level 10

The error massage has nothing to do with the script above.

There is a problem with a FormCalc script in the the field Company_Name.

Maybe of a security restriction after adding a signature.

Avatar

Level 1

THanks, so where do I need to look to make the fix. I know very little about adobe so forgive me. I'm really surprised that I'm having trouble being that I just upgraded versions. You would think everything would work....

thanks again!

Avatar

Level 10

Hi,

please upload your form anywhere. I cannot give you an answer without seeing it.

Avatar

Level 1

sent you a pm, having difficulties uploading a document.

Avatar

Level 10

Hi,

to fix this problem you can do the following:

Delete the script in the exit event of the field "SPECIAL_NOTES" and add this script to it's change event.


$event.change = Upper($event.change)


Hope this helps.

Avatar

Level 1

I have this in the textbox code,

topmostSubform.Page1.SPECIAL_NOTES::exit - (FormCalc, client)

$event.change = Upper($event.change)

Avatar

Level 1

but the signers status still does not change when a signer signs the doc.

Any other suggestions?

Thanks!

Avatar

Level 1

and prints I should add...  The status change is hidden, until printed.

Avatar

Level 10

Hi,

I've send you a fixed version of your form.

Avatar

Level 1

Did you receive my other email?

Thank you!