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

Insert File Path into Text Field

TNico
Level 2
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
TNico
Correct answer by
Level 2
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
TNico
Correct answer by
Level 2
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