Solved

Popup via Checkbox

Posted on 2004-04-13
8
388 Views
Last Modified: 2013-12-18
Is it possible to have a alert style dialog popup window appear based on the selection of one item in a checkbox selection. I want to create a warning style popup which alerts the user to possible porblem when they choose one of two selection in a checkbox series.
0
Comment
Question by:jforget1
  • 4
  • 2
  • 2
8 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 10813426
It is certainly possible to ask for a confirmation AFTER the DialogBox is closed. COuld that solve your problem?

"Setting this option will clear your C-drive. Are you sure? "
0
 

Author Comment

by:jforget1
ID: 10813479
I think I explained it wrong, I simply want a popup window to appear if they choose option B, then an OK dialog window would say basically "Are you sure you want to choose option B". They can then click ok and leave it on that selection or change to option A. There are some issues they need to be aware of with one of the items. Actually I am using a Radio button for this field.
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 10813507
You can do that in the Input translation

@if( ckbox = "A"; @Prompt([ok]; ""; "Selection A has ... consequences"); ckbox = "B"; @Prompt([ok]; ""; "Selection B has .. consequences"); "");
ckbox

PS: Above method will work but will be annoyingly prompting the msg whenever user refresh the doc or save. To avoid that keep a flag field when entering this field set it to 0 and in the input translation set it to 1 and check if that field is 0 then prompt.

~Hemanth
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:jforget1
ID: 10813593
I modified this a bit because I only want the popup for selection B, if they choose A I want it to just move to the next field, nut now when I click ok and leave it on B it keeps popping up the alert, how can I have it where it pops up the alert but allows the selection to stay on B and move on. B is a possible option just want the alert to make them aware of certain issues.

@if( current = "B"; @Prompt([ok]; ""; "Monitor can only be replaced if broken"); "");current
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 125 total points
ID: 10813629
That is the side-effect that I mentioned in my comment ...Let me give you a more simple soln.

Create a computed for display field below this checkbox and set hide-when formula like this

Current != "B"

This display field will have the prompt msg.. So when user selects option B, this will show this msg right on the form.

Is this agreeable ?
0
 

Author Comment

by:jforget1
ID: 10813683
I like that solution, it is easier and gets the job done. I did the test in bold and red and it is very effective.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 10813711
Don't forget to enable Refresh fields on keyword change
0
 

Author Comment

by:jforget1
ID: 10813792
Thanks for the tip sjef, I did not have that selected.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

733 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