Expand my Community achievements bar.

SOLVED

Insert File Path into Text Field

Avatar

Level 2

I am trying to create a text filed at the bottom of a form document that will automatically input the file path (e.g.. C\:Folder\File) of the document itself after the document is saved.  I've looked at a few Scripts but nothing seems to be working.  I'm assuming it will look something like this on the "postSave" option:

this.rawValue = event.target.path.replace(event.target.documentFileName, "");

I am a very novice programmer so I have no idea if this is even close to right.

1 Accepted Solution

Avatar

Correct answer by
Level 2

Apparently some of my search parameters were off.  This question has already been answered before.  If anyone comes looking here, this is a link to the page with the answer.

http://forums.adobe.com/message/4007317#4007317

Enjoy.

FYI: here is the code I used for the text field.

Inspection.TextPage.Bottom.End.Directions.File::preSave - (JavaScript, client)

this.rawValue = event.target.path

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

Apparently some of my search parameters were off.  This question has already been answered before.  If anyone comes looking here, this is a link to the page with the answer.

http://forums.adobe.com/message/4007317#4007317

Enjoy.

FYI: here is the code I used for the text field.

Inspection.TextPage.Bottom.End.Directions.File::preSave - (JavaScript, client)

this.rawValue = event.target.path