I am not a designer but have been asked to create a button in a email that, when clicked, sends an acknowledgement that the documents in the email were read by the recipient. It works great except that I don’t know how to prevent it from being clicked multiple times, sending an email each time.
Any help would be appreciated.
Subject: Use an environment variable
Not totally foolproof (the user can find and remove it from Notes.ini), but quick and easy e.g.
@If (@Environment(“EmailSent”) = “1”; @Return(@Prompt([Ok]; “Email has already been sent”; “Email has already been sent”)); “”);
@MailSend(…);
@Environment(“EmailSent”; “1”);
If you are using LotusScript then use SetEnvironmentVar and GetEnvironmentString of NotesSession to achieve the same result.
Subject: I wouldn’t suggest this way.
Has issues when people switch between machines etc.
have the button set a field value in the current document, indicating it has been sent. In you button, basically the same as Wayne does, wrap it in an @IF, if it’s already been sent, notify the user and exit.
Subject: Thanks so much.
Thanks. I will try these suggestions!