My problem is that it will not save the e-mail if the user either chooses to save it (if their preference is to always prompt on send) or save it automatically (if their preference is to always keep a copy). I have checked to make sure the saveoptions flag is set to "1" , and since it is, I am at a loss. Below is my code. Can you see the issue?Note from SearchDomino: The field for posting an Ask the Expert question could not accommodate this code, which was quite lengthy, in its entirety. If you would like to see the code, please send a note to email@example.com
Basically, what you're doing is trying to decide whether a "send" of the message can proceed. You don't want to affect saving one way or the other, so that users can save drafts without being prompted. I think you should use the form Querysend event, which will execute whenever the user tries to send, even if it's not by clicking your action button. Querysend lets you stop the send from happening by setting Continue = False. This ought to work the way you intend, although I have to admit it's not something I've had occasion to try for myself.
Do you have comments on this Ask the Expert question and response? Let us know.
Dig Deeper on Lotus Notes Domino Application Development
Related Q&A from Andre Guirard
Learn how you can use LotusScript and OLE to create and populate Microsoft Excel spreadsheets, as well as a little bit about Lotus Symphony. Continue Reading
Discover options you can use if you'd like external users to be able to access a workflow-based Notes Domino application through different ... Continue Reading
Learn why you may receive the error message: "Illegal circular use: Audit Trail" when trying to open Lotus Notes documents that use copied forms. Continue Reading