Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

File name code

Not applicable
Does anyone have JS code that will add the current file name (or complete path) to that document.
3 Replies
Jasmin_Charbonn
Level 10
Level 10
I don't understand your question.



Jasmin
Not applicable
I would like to embed the file name and/or path into the footer of the pdf. Much like Word can do in the header and footer of the document.
HowardTreisman
Level 9
Level 9
Try this on the click event of a button in javascript:

var myDoc = event.target;

xfa.host.messageBox('The file name of this document is ' + myDoc.documentFileName + '\nThe path name of this document is ' + myDoc.path);

Howard

http://www.avoka.com