Assigning the file path to a text field

Avatar

23-03-2009

I assume this is simple, but I can't figure it out...



I want to be able to print out the the file name on my form -- preferably the full path to the PDF file, e.g. N:\MyFolder\MySubfolder\MyFormName.PDF



I have been looking at the GetAttribute command but I can't seem to find the file name and path in the XML object model.

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

24-03-2009

The filename and path are not stored in the XML.



The command event.target.path will return the full path and file name to you. The command event.target.documentFilename will return just the filename - no Path.