Expand my Community achievements bar.

Unique User Name

Avatar

Level 2

I am looking for a way to automatically place a unique id into a test field based on the user that completes a form such as the windows username. From what I see I dont believe that Acobat/Livecycle can access enviromental variables. Is there a way to do this or does anyone have an alternate solution? This document is being run in reader on the clients computer and not in a browser (this may be a possibility in the future though).

5 Replies

Avatar

Former Community Member

There is an identity object in Acrobat/Reader that can be lveraged if the user fills it out. The object can be found under Edit/Preferences/Identity

Paul

Avatar

Level 2

I can look this up I'm sure... but how would I refrence/get this with Javascript?

Avatar

Former Community Member

You can use the Acrobat identity object....something like this:

Field.rawValue = identity.property

Valid property names are corporation, email, loginName and name

Paul

Avatar

Level 2

I am trying to work with what you posted and I am not getting a value returned

this.rawValue = identity.loginName;

or

this.rawValue = identity.property.loginName;

Avatar

Former Community Member

Just looked at it again and that command is not allowed in interactive mode (to protect the identity of the user).

I do not know of another way to get user information without asking them....sorry!

Paul