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.
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.