Now back to wall breaking.....
The wall is winning:(
From other threads I'm understanding that this script (still working beautifully) can be added to a Document Action, in this case Document Will Print. But if fails to do anything, just goes straight to the Print dialogue box. Obviously user error but I'm not seeing what it is.
Guess I'm stuck with a Print Button and an app.alert within Document Will Print reminding the user about required fields.
Wall 2 - Me 0!
No, the Will Print script executes before the file is sent to the printer. However, it can't prevent the file from being printed.
Hmm, for me the message listing the fields that have not been completed shows AFTER the print dialogue box displays and OK is clicked. By the time the list of field names shows there is no way to cancel the Print command.
I'm ok with the user being able to print, but want to give warning of missing required information.
Yes, after the print dialog, but before the file is actually sent to the
printer. This can't be changed.
Thats what I figured. I can live with a Print Button and a message after the print command if File/Print is used.
Fair warning....I'm toying with adding an alert when the form is opened with instructions to use the Print button. I may be back!
Thanks for all your help....