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

Dialog title

Konstantin
Registered: Jul 22 2008
Posts: 6
Answered

Hi!
There is a note in "Acrobat JavaScript Scripting Reference" on page 95.
Note:
To distinguish a dialog from an Acrobat dialog from JavaScript, dialogs that are added at the document level will have a title of "JavaScript Dialog" and will display the text "Warning: JavaScript Dialog" at the bottom.

Is there any possibility to remove the warning and to change the title of dialog window?

Thanks in advance.

My Product Information:
LiveCycle Designer, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi Konstantin,

You can change the title of a dialog. Here is an article from JavaScript Corner that has some example code showing this-

http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/popup_windows_part5/

The Warning:JavaScript Dialog verbage is a security measure and can only be removed if the code is run from a trusted context. Here is another JavaScript Corner article that discusses this-
http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/popup_windows_part2/

Hope this helps,

Dimitri
www.pdfscripting.com
www.windjack.com