?
Solved

Adding a confirmation popup before an email in sent from a button

Posted on 2006-05-24
10
Medium Priority
?
578 Views
Last Modified: 2013-12-18
Hello All,

I have included a button in my email that when clicked sends a message back to me. Basically the button is a "remove me from a distribution list" and the email is just one letting me know that the person have chosen to be removed. As it is very easy to click buttons without realizing what they are or not reading them properly i wanted to include a pop-up box asking if they were sure. Does anyone know if there is a simple way I can include a pop-up box saying

"Are you sure you want to be removed from the distribution list?"
Then buttons Yes or No (or Cancel, or anything obvious)
yes - submits the email to me
no - just cancels the box and does not send the email

Thanks for your help.
0
Comment
Question by:eadam-uk
  • 5
  • 5
10 Comments
 
LVL 19

Expert Comment

by:madheeswar
ID: 16750502
response5 = Messagebox ( "Are you sure you want to be removed from the distribution list?" ,(1+48+256+0) ,"Mail notice for department")
      
'If the User Clicks OK, Send Mail Else Continue.
      
      If response5<>1 Then
            Continue=True
      Else
'If yes, then send mail ....
            'Your code ....
      End If

Check for Designer Help for more info on Messagebox
0
 

Author Comment

by:eadam-uk
ID: 16750574
Hi madheeswar,

Thanks, for the reply, how do I add this to lotus notes. Also does the first condition return true if cancel is clicked else continue, or does it check for yes twice, I am slightly confused.
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 16750598
It only prompts Yes or No and asks only once.

This is Lotus Script code. If you are looking at @Functions, use:
[YESNO] displays a warning, and gives the user a chance to proceed or cancel the operation. If the user selects Yes the numeric value 1 is returned. If the user selects No the numeric value 0 is returned.
@Prompt([YESNO]; "Send memo?"; "This memo will be sent to everyone listed in the To, CC, and BCC fields.")

What is the code in the Button users are clicking in ur db?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:eadam-uk
ID: 16750661
This is just an email. I have no DB.

I have included an @function prompt and the popup dialogue works, I have also included the send mail commant, in my button. Where do i place the IF command?

I now have "Run @function formula   Send Mail" in my button panel. I just want the IF to say, if it is no cancel everything, if it is yes, continue.
0
 
LVL 19

Accepted Solution

by:
madheeswar earned 1500 total points
ID: 16750677
res:=@Prompt([YESNO]; "Send memo?"; "This memo will be sent to everyone listed in the To, CC, and BCC fields.");
@if(res=0;@Return("");@mailSend)
0
 

Author Comment

by:eadam-uk
ID: 16751552
Ok, so i now have this in my function call

@Prompt( [YesNo] ; "Confirmation"; "Are you sure you want to be removed from the distribution list?");@If(res=0;@Return("");@MailSend)

and then another Send mail function after that.

This currently sends one mail regardless of which button I press and then another straight after. Any tips?
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 16751588
paste your code here..

You should be placing this code in front of your code and in the code which I have provided, instead of @Mailsend, you can place your code.
0
 

Author Comment

by:eadam-uk
ID: 16752000
I don't have any code, I just clicked on the add action button, then clicked on the Send Mail action and filled in the form. I did the same for your code but clicked on on Add action @function and typed it in manually.

Do you know the syntax for MailSend then I could manually code it instead.

Thanks for you patients.
0
 

Author Comment

by:eadam-uk
ID: 16752507
Ok, I got it too work. Why is Lotus notes so useless! or is that me? Mmmm.

For anyone who is interested.

@If((@Prompt( [YesNo] ; "Are you sure?"; "Are you sure you want to be removed from the distribution list?"))=0;@Return("");@MailSend("Email Address Goes Here"; ""; ""; "REMOVE ME - Distribution List"; "Remove me please."; ""; ""))

Thanks Madheesware for you help.
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 16758910
I think you need to develop some programming skills. You cannot blame Lotus Notes for your fault.

Your requirement is basic.
and may I know why I got grade "B"?
Is my answer not usefull?
If you think I deserve "A", post a question in Community Support to change the grade with this thread Link.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month16 days, 5 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question