Solved

Popup via Checkbox

Posted on 2004-04-13
8
389 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: 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

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!

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…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

728 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