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

SOLVED

Network path as variable for email generation - XDP Form

Avatar

Level 3

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

This script will return the actual path of the PDF.

event.target.path

 

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

This script will return the actual path of the PDF.

event.target.path

 

Avatar

Level 3

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.

Avatar

Level 10

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, "");