Copy link to clipboard
Copied
Hi All,
This is my first attempt at using Javascript...
I am attempting to create a Save As button on a form that will:
So far I have been fairly successful. I have been able to do a silent save, saving to a specific location and saving the file name based on fields. I need help building the rest of the functionality into the code if possible.
Thanks in advanced!
-------------------------------------------------------------------------------------------------------------------------
The code I have so far is:
Trusted Level Function
saved in Notepad under the Adobe / Javascript folder
mySaveAs = app.trustPropagatorFunction(function(doc,path) {
app.beginPriv();
doc.saveAs(path);
app.endPriv();
})
myTrustedSpecialTaskFunc = app.trustedFunction(function(doc,path) {
// Privileged and/or non-privileged code above
app.beginPriv();
mySaveAs(doc,path);
app.endPriv();
// Privileged and/or non-privileged code below
});
PDF Button
Code under button that is executed on Mouse up click
// build file name
var myFileName = getField("Work_Pack").value + " - " + getField("Form_Name").value + " - " + getField("Todays_Date").value + ".pdf";
// add folder name
myFileName = "/c/temp/Saved Forms/" + myFileName
myTrustedSpecialTaskFunc(this, myFileName);
this.closeDoc() ;
-------------------------------------------------------------------------------------------------------------------------
FYI for those interested I used the following:
Trusted Level Function
saved in Notepad under the Adobe / Javascript folder
mySaveAs = app.trustPropagatorFunction(function(doc,path) {
app.beginPriv();
doc.saveAs(path);
app.endPriv();
})
myTrustedSpecialTaskFunc = app.trustedFunction(function(doc,path) {
// Privileged and/or non-privileged code above
app.beginPriv();
mySaveAs(doc,path);
app.endPriv();
// Privileged and/or non-privileged code below
});
PDF Button
Code under button that is executed on Mouse up cl
...Copy link to clipboard
Copied
Try67 please let me know if you can help me with the file i have i'm willing to pay. Thanks
Copy link to clipboard
Copied
Yes. You can contact me via try6767 at gmail.com .