Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Network path as variable for email generation - XDP Form

Avatar

Level 4

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 4

Used as:

var vPath = event.target.path;

 

Works perfectly. Thank you.

Avatar

Level 4

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