Avatar

Level 2

Hey everybody, found this forum very usefull in the past and have been searching these forums for my current problem but haven't found any info.  I have several issues but lets start with this one.

I need to be able to dectect if the user has selected File>Print and if they have then do the following:

1) Pop up a warning message.  This message is to say to use the print button on the form it self.
2) Show a previously hidden page on the form and hide all the other pages.  The user then will essentially only be able to print a "useless" page which will have some instructions on how to print properly.


I'am able to show and hide pages using the script " xfa.resolveNode("page3").presence = "hidden"; "

I'am able to pop up a warning message using the script " xfa.host.messageBox("This is a test message!"); "

Not sure if the above two bits of script are going to be useful or not but I guess what I'm looking for is for a way to detect if the use has clicked the File>Print and then run the above two scripts.  I'm new to LiveCycle designer and scripting.

Kind regards,
SCF