Hi experts
I am trying to access active document PDF file name in Live Cycle Javascript How this can be possible? I can understanad the below command for Acrobat Javascript
var mydocname= this.documentFileName;
In Live Cycle how can i access this value
Thanks in advance
Regards
arul
Solved! Go to Solution.
Views
Replies
Total Likes
Views
Replies
Total Likes
HI,
you can use
event.target.documentFileName;
Hope this helps
Malcolm
Views
Replies
Total Likes
Hi BarlaeDC
Thanks for your help. Here I am trying to add water mark on condition bases
var pass_word = PasswordField1.rawValue;
myDoc.addWatermarkFromText(
"Confidential",
0,
font.Helv,
24,
color.red
);
This can be possible?
Thanks in advance
Views
Replies
Total Likes
Hi,
I don't think you can add a watermark in that manner to a form designed in LiveCycle as the watermark is added to an Optional Content Group and I don't think these can be created in LC forms ( maybe someone else can confirm that?)
As to your code this call
var myDoc = event.target.documentFileName;
returns a string containing the name of the document, not the document itself.
to get the access to the document object you would change that to
var myDoc = event.target
Although as stated above I do not think you can add a watermark to a LC Form in this manner.
Hope this helps
Malcolm
Views
Replies
Total Likes