Hi. I created a pdf version of a standard form we use here at the office. One of the users is very, very much a computer novice and simply saving and renaming is a challenge. So, I put a shortcut to the form in the folder where the created forms need to be saved (so that is the default save location) and created a save as button on the form, but I'd also like to automate the save as file name.
I have this code under the "mouseup" event:
var fn = getField("date").rawValue + "-" + getField("company").rawValue;
This is my result...
Any ideas what I'm doing wrong or missing OR what might be a better way to skin this cat?
I use always:
var FilePath = event.target.path;
this.rawValue = FilePath;
If you use this in the preview of the LCD you get your result.
The right result (the path) you get if you use this with the Adobe Reader.
This is the same with this script then with the LCD preview you got the temp file name:
this.rawValue = event.target.documentFileName;
Hope it will helps you,
Did you get this figured out?
I have a related issue where I want to save the form file with a save button to a specific path and also name it according to the value of several variables in the filled out form.
If I could email that file with the same button that would be even better.
I have been looking around the forums but I have yet to see something like that.