Hope there is a way; I need to provide the network path location as a variable for the creation of an email generated within the form.
Is there a way to store the network path location when opening the form from a network location?
Thank you in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
This script will return the actual path of the PDF.
event.target.path
Used as:
var vPath = event.target.path;
Works perfectly. Thank you.
Hello radzmar,
So, in further searches on this topic I found some additional information:
event.target.path.toString(); full path with filename.
event.target.documentFileName.toString(); filename only.
However, I am seeking a way to pull ONLY the folder where the file was opened on the network, and, wondering if this works prior to modifying my form?
event.target.documentPath.toString(); ???
Does this address that requirement in your estimation? If not, please provide direction.
Thank you in advance.
Hi,
you don't need the toString(), the method already returns a string.
To get just the path use
event.target.path.replace(event.target.documentFileName, "");
Views
Likes
Replies