I need to get the filename of the "parent" document a stamp is being placed into to put into one of the stamps textfields. This was what I was hoping would work inside of stamps textfield custom calculation:
event.value = app.activeDocs.documentFileName;
Thats a no go. For some reason activeDocs is always empty, despite the fact I have 3 pdfs open. Does anyone have any ideas on why this is not working? Have a better idea to do the same thing?
Thanks for your help.
Thank you! Works great.
And for those looking for the quick answer in the future:
event.value = event.source.source.documentFileName;