I'm trying to get the value of the identity.name property in order to automatically populate a field with data but I receive this error message when trying to do so.
"Security settings prevent access to this property or method."
Does anyone know how to turn the security off this property or a work around to get user login information?
Any help would be greatly appreciated.
Thanks
Sarah R. Copley
The following script can be added to Acrobat's/Reader's application folder's JavaScript folder:
// Folder level script to create an application level variables for the "identity" objects properties
var Identity = new Array();
for ( i in identity)
Identity[i] = identity[i];
Acrobat/reader will need to be restarted for the change to take affect. This JavaScript file will have to be added to each user's system that requires access to this object.
The elements of the Identity variable will be the same as the app "identity" array.
You can use the following script with the Debugger console to see the values:
for (i in Identity)
console.println(i + ": " + Identity.i);
or
for (i in Identity)
console.println(i + ": " + Identity[i]);
George Kaiser