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
Solved

Need popup screen when radio button is selected

Posted on 2006-11-29
11
329 Views
Last Modified: 2013-12-18
There is Radio button is editable so the user can select e.g. option 'A' or 'B'

If he selects 'A' then a message window should appear telling him what button he should click next.

With a computed Radio button would be easy but how to do it with an editable Radio button?
0
Comment
Question by:verto33
  • 4
  • 3
  • 2
  • +1
11 Comments
 
LVL 63

Accepted Solution

by:
SysExpert earned 20 total points
ID: 18037154
Use the on exiting portion of the button and Lotus script to determine the button's setting and create a messagebox as needed.


Dim ws As New notesuiworkspace
      Set uidoc=ws.currentDocument
      Set doc=uidoc.Document
      
      
            
            If  yourbutton="A" Then
                  Msgbox " Please do something "
                  Exit Sub
            End If
 

I hope this helps !
0
 
LVL 63

Expert Comment

by:SysExpert
ID: 18037164
actually it should probably be

If  doc.yourbutton(0)="A" Then
0
 
LVL 8

Assisted Solution

by:behenderson
behenderson earned 60 total points
ID: 18039185
We have solved that problem by substituting 'Helpful text' for the Popup.  The OnChange event for the radio button is actually on exit so so if you want them to know where to go next the best way to do it is as SysExpert has described which is to do it on exit which does not help them know where to go next because they need to know before they go there (Exit)

Put a hidden text table below the field with different hidden text that shows for every button that is pressed.  You put in Hide/When formulas for each row of text that is applicable to the fields values.  You must make sure that you indicate that the form should refresh Fields on keyword change.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

 
LVL 18

Expert Comment

by:marilyng
ID: 18060064
Hi verto33,
Another thought on this problem.  What I did with complicated forms, was to split the form display into a table.

One column would be the data entry area, and another column would be the instructions.  For the instructions I used a nested table, and then depending on the selection in the adjacent field, the row would display the correct instructions of where to go next.  Sometimes I would use computed text, or a computed field to display results.  

In views, I would mount these on a page or form, with instructions to the right of the view.  (icon definitions are helpful here, too)

For example, in your case of a select button A, B, or C:  I set the Adjacent Row HideWhen formula to display information when each case is selected, or I used a computed text field to display the appropriate information (less cumbersome than a Hide When field).

Regards!
0
 
LVL 18

Expert Comment

by:marilyng
ID: 18060071
Oops... just realized that my post is similar to beHenderson... sorry, didn't read it carefully enough.
0
 
LVL 8

Expert Comment

by:behenderson
ID: 18060796
I would say that the solution above is very specific and expands on what I suggested while adding more suggestions and detail.  It looks good to me. I hope that it helps verto33.
0
 

Author Comment

by:verto33
ID: 18085323
I tried SysExpert's suggestion. But strange because there's no error message and no popup screen either.

The below code is in the Field's Exiting part.

Three options are checked:
- Refresh fields on keyword change
- Refresh choices on document refresh
- Allow keyword synonyms

Sub Exiting(Source As Field)
      
      Dim ws As New notesuiworkspace
      Set uidoc=ws.currentDocument
      Set doc=uidoc.Document
      
      If  doc.taoras(0)="Y" Then
            Msgbox " You took the responsibility for the current document"
            Exit Sub
      End If
      
End Sub

What do I wrong?
0
 
LVL 18

Expert Comment

by:marilyng
ID: 18086876
the exit event in LS will ONLY work if you TAB out of the field, else it won't trigger.   If you click your mouse in the field, then click out, it might not trigger.     Even the onChange event in JS doesn't always trigger.

0
 

Author Comment

by:verto33
ID: 18091492
Yes, when I tab out from the radio button field the message box appears.

Now, I try the solution from behenderson
0
 

Author Comment

by:verto33
ID: 18092567
I did it with behenderson's suggestion and created text with a hide when option.

0
 
LVL 18

Expert Comment

by:marilyng
ID: 18098382
Cool!  good for you.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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