Solved

Popup via Checkbox

Posted on 2004-04-13
8
386 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
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…

777 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