Quantcast
Channel: Adobe Community : Discussion List - LiveCycle Forms
Viewing all articles
Browse latest Browse all 1160

add code to generate filename to existing "Save As" button

$
0
0

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:

 

app.execMenuItem("SaveAs")

 

var fn =   getField("date").rawValue  + "-" + getField("company").rawValue;

 

 

This is my result...

_3c5o2408p3b4a69j3o.pdf

 

Any ideas what I'm doing wrong or missing OR what might be a better way to skin this cat?

 

Thanks!


Viewing all articles
Browse latest Browse all 1160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>