These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Life Cycle Designer Auto Populate Identity

Webcor
Registered: Feb 10 2010
Posts: 8

I am trying to figure out how to get a Text Field to pre populate a users identity. I tried using java script that I had from some PDF stamps but I can get those to work. I am pretty new to LCD so maybe I am doing something wrong.

This what I have from the PDF stamp.

event.value = ((!identity.name || identity.loginName != (event.source.source || this).Collab.user) ? (event.source.source || this).Collab.user : identity.name)

If anyone can help that would be great.

Thx

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
LiveCycle Designer and Acrobat have differences in the languages and syntax used that you may need to adjust for if you are going to cut and paste the code from one product to another. Also you need to carefully consider where and when the copied code is being executed.

The content and scripts for dynamic stamps are in application folder level scripts and are initialized when Acrobat is started.

If you now read the Acrobat JS API Reference section about the 'Identity' object you will see there are security restrictions on the use of the 'Identity' object and there are instructions as what can to be done to work around these restrictions by using a script that is placed in one of the application folders on a users system.

The script that can be used in Acrobat can also be used by LiveCycle Designer.

George Kaiser

Webcor
Registered: Feb 10 2010
Posts: 8
Would that file in the application folder on the users computer have to be created and put on to every computer in our company?