Solved

Need popup screen when radio button is selected

Posted on 2006-11-29
11
319 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
Comment Utility
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
Comment Utility
actually it should probably be

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

Assisted Solution

by:behenderson
behenderson earned 60 total points
Comment Utility
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
 
LVL 18

Expert Comment

by:marilyng
Comment Utility
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
Comment Utility
Oops... just realized that my post is similar to beHenderson... sorry, didn't read it carefully enough.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 8

Expert Comment

by:behenderson
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
I did it with behenderson's suggestion and created text with a hide when option.

0
 
LVL 18

Expert Comment

by:marilyng
Comment Utility
Cool!  good for you.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now