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
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