Can someone please help me find/write a script that can be set as an action on a text field to automatically populate the file name of a form (similar to how a script that populates today's date would work). My goal was to just put it in the footer, and I figured there was no way Acrobat wouldn't have some step already set up to do this, but after about 4 hours of researching, I have not found anything that works for me and this is really holding me up. I have found a few things that populate page number, date and then filename, or path. But, I only want the filename to populate in the lower right corner, in a small point size, in gray.
I would greatly appreciate anyone's knowledge on this!
If you just want the current file's name, you can do the following:
Go to the field's calculation tab, and under custom script enter this
event.value = this.documentFileName;
Thank you so much!! That was exactly what I needed!