Expand my Community achievements bar.

Save button

Avatar

Former Community Member
I know I can enable the user to save a form in Pro 8, but I would like to add an actual save button to a form next to my submit via email and print buttons. But I cannot see how to do this. I would think this should be easy but do not find a reference to it anywhere. Any help here?
3 Replies

Avatar

Former Community Member
Hi David,



Try the following JavaScript.



app.execMenuItem("SaveAs");



Cheers,



Hélène

Adobe Systems

Avatar

Former Community Member
Thanks Helene. I am just starting to learn javascript and all that. But is seems to me that a save button and many other things should be premade functions--like the submit to url button and some others are. Why aren't they? It just seems unnecessarily complicated to have to learn scripting to add something as simple as a save button.

Avatar

Former Community Member
I'd like to use the print key to initiate a loop that will protect all fields on a form but I only want that to happen if the user actually prints the document and doesn't hit cancel. What is the proper syntax for the loop and how can I only kick this off if the user prints? Dave