Copy link to clipboard
Copied
To display the file name I use:
event.value = event.source.source.documentFileName;
I couldn't find anything to display the directory.
Is there a way?
Copy link to clipboard
Copied
Just the name of the folder in which the document is located would be perfect.
Thanks for the super-fast reply
Copy link to clipboard
Copied
event.value=event.source.source.path;
Copy link to clipboard
Copied
The full directory path, or just the name of the folder where it's located?
Copy link to clipboard
Copied
Just the name of the folder in which the document is located would be perfect.
Thanks for the super-fast reply
Copy link to clipboard
Copied
Use this:
var pathParts = event.source.source.path.split("/");
event.value = pathParts[pathParts.length-2];
Copy link to clipboard
Copied
Thank you very much
It helped me a lot
Find more inspiration, events, and resources on the new Adobe Community
Explore Now