Follow up - Saving to a Network Drive
Thank you George Johnson for the help on my initial question!!! I made the suggested changes and worked perfectly on my machine. I then tried to move it over to the office and I'm sure I've done something screwy because it will no longer save.
This is the "trusted" (I'm hoping) js doc, which I have in the Acrobat Javascript file; also in the folder where the saved forms should be going AND in the folder containing the original doc.:
var mySaveAs = app.trustedFunction(
function(oDoc, cPath, cFlName) {
// Ensure path has trailing "/"
cPath = cPath.replace(/([^/])$/, "$1/");
try {
app.beginPriv();
oDoc.saveAs(cPath + cFlName);
app.endPriv();
} catch (e) {
app.alert("Error During Save - " + e);
}
}
);
I believe one problem is the "cPath" part of that script...but I'm a novice and not sure what to replace it with.
Trying to save the completed form (applicant pressed a SEND button, which runs the JS associated with the button) to a MyCloud storage disk attached to our network. I set up a folder to receive the files, located here: \\PHOENIX-MYCLOUD\Public\APPLICANTS
The button script is:
this.saveAs("Network/PHOENIX-MYCLOUD/Public/APPLICANTS/" + this.getField("lastname").valueAsString + " " + this.getField("firstname").valueAsString + " " + "application.pdf");
I have tried it with
//Network/PHOENIX-MYCLOUD/Public/APPLICANTS/
/Network/PHOENIX-MYCLOUD/Public/APPLICANTS/
//PHOENIX-MYCLOUD/Public/APPLICANTS/
I'm sure the problem is glaring at most of you...but me...LOST.
Thank you for your assistance - AGAIN!
