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

MessageBox question

tgmoon
Registered: Jul 5 2007
Posts: 6

Hi.

Is there a way to have a message box popup the moment a particular PDF is opened?

Cheers

Thom

almitche
Expert
Registered: Apr 1 2008
Posts: 41
Hi Thom,

You bet. Try this ...

Select the (untitled Subform) Page 1 object in your Hierarchy palette. In the Script Editor, select the DocReady event and set the Language drop-down to either FormCalc or JavaScript. Make sure the Run At option is set to Client.

Then paste one of the following into the DocReady event:

JavaScript:
xfa.host.messageBox("This is your document opening!");

FormCalc:
xfa.host.messageBox("This is your document opening!")

Hope that helps. You can read more about the messageBox method in the Help. When Designer is open, select F1 and then browse to the following topic:

Scripting > Scripting Reference > Scripting Methods > messageBoxThere are some other options you can set other than just the message you want to display.

Hope that helps.