Expand my Community achievements bar.

It is possible a form to save automaticaly?

Avatar

Level 4

Hello People!

I am a problem with my form.

My form has a save button, but same user clicking on this button and saving, when it try to close the file, the sortware Adobe Reader seeks to save again. I believe that this happen because my form use function dynamic. But, How do I block it? It is possible the form save automaticaly or really block it?

.

NOTE: I know to look like a meaningless problem , but I need this to avoid the user sends the part wrong the form.

Seizing the opportunity

I wanted to do the following:

On the click at the save button, I want that Save the file and if the user really saved, I want that it send e-mail.

I tried this:

if(app.execMenuItem("SaveAs"))

{

... send e-mail

}

But it doesn't work

3 Replies

Avatar

Level 10

app.execMenuItem("SaveAs") will execute the menu action but may not return anything..So you can not get any return value from that function..

So in your code you can use ..

app.execMenuItem("SaveAs"); //remove the If condition.

... send e-mail;

Thanks

Srini

Avatar

Level 4

Thanks Srini for you reply. But about the save automaticaly, is it possible?

I have also another question in another post (about the save different when send by e-mail) answered for you. Can you help there too?

Thanks so much.

Avatar

Level 4

I doubt you could save it automatically.  If you were able to, this would be a pretty massive security issue.