These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

POP up message on closing

sabdelza
Registered: Apr 16 2010
Posts: 7

Hi All,

I would to prompt an Error Message if the user try to close the form in Reader or Acrobat. For Example If the user got busy and will not be able to finish and would like to close the form. I would like to prompt the user if he/she wants really to close the form or that was by mistake.

I tried the docClose Event but the problem docClose Event is when the form is closed and you cant retrieve it back if the user wants to continue with the form.

Please help

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Can't be done. You cannot stop the user from closing a file. Acrobat will however prompt the user if the form contains unsaved data. So not to worry, Acrobat/Reader already takes care of this.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script