Connecting Tech Pros Worldwide Help | Site Map

Deselect a Radio Button at Lotus Note

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 02:56 PM
Orchid
Guest
 
Posts: n/a
Default Deselect a Radio Button at Lotus Note

I have 2 fields with Radio button Data Type, and both fields with more
than one options. On Field1, I want the user to select option1, then
Field2 is shown and able to select. If the user selects Option2, then
Field2 is not shown.

I can have the hidden-field working properly. However, after the user
selected Field1-Option1 and selected an Option on Field2, but cannot
deselect the option on Field2 if change mind on Field1 selection.

Is there any way to DESELECT the Option in a Radio Button?

Moreover, Can I set an error message on a Computed Field, such as if
the total isn't equal to 100, then telling user "total must equal 100"?

Your help is greatly appreciated!


  #2  
Old November 13th, 2005, 02:56 PM
Salad
Guest
 
Posts: n/a
Default Re: Deselect a Radio Button at Lotus Note

Orchid wrote:
[color=blue]
> I have 2 fields with Radio button Data Type, and both fields with more
> than one options. On Field1, I want the user to select option1, then
> Field2 is shown and able to select. If the user selects Option2, then
> Field2 is not shown.
>
> I can have the hidden-field working properly. However, after the user
> selected Field1-Option1 and selected an Option on Field2, but cannot
> deselect the option on Field2 if change mind on Field1 selection.
>
> Is there any way to DESELECT the Option in a Radio Button?
>
> Moreover, Can I set an error message on a Computed Field, such as if
> the total isn't equal to 100, then telling user "total must equal 100"?
>
> Your help is greatly appreciated!
>[/color]
I guess you have Frame1 and Frame2...your names may be different In the
Frame1 AfterUpdate event you could have some code like
'sets the visibility of the second option group
Me.Frame2.Visibile = (Me.Frame1 = 1)

'deselect both option1 and option2 in Frame2
Me.Frame2 = 0

Let's say you have Text1 and Text2 And Text3. Text3 contains the sum of
Text1 And Text2. In the AfterUpdate event of Text1 and Text2 you could
have code like
If NZ(Me.Text1,0) > 0 And NZ(Me.Text2,0) > 0 Then
If Me.Text1 + Me.Text2 <> 100 then
msgbox "Not 100"
endif
Endif

You could do it other ways but I'd think you don't want the message to
appear everytime a value is entered...you want the value to appear when
all fields have a value....but it's up to you as to how often you want
the error message to appear. Perhaps the best place to put it is the
BeforeUpdate event of the form. Then you could enter
If Me.Text3 <> 100 then
msgbox "You can't save record unless it equals 100"
Cancel = True
Endif
  #3  
Old November 13th, 2005, 02:56 PM
Orchid
Guest
 
Posts: n/a
Default Re: Deselect a Radio Button at Lotus Note

Thanks so much for your prompt reply.
My above problem is at Lotus Notes. Is your answer for Lotus Note??
if so, where should I place the IF statement? If is on the
Programmer's Pane, which Info List (such as: Input Validation,
OnChange, ect)?

Thanks!

  #4  
Old November 13th, 2005, 02:57 PM
Salad
Guest
 
Posts: n/a
Default Re: Deselect a Radio Button at Lotus Note

Orchid wrote:[color=blue]
> Thanks so much for your prompt reply.
> My above problem is at Lotus Notes. Is your answer for Lotus Note??
> if so, where should I place the IF statement? If is on the
> Programmer's Pane, which Info List (such as: Input Validation,
> OnChange, ect)?
>
> Thanks!
>[/color]
Sorry. I noticed the Lotus Note after sending the message. This is an
Access group. The logic works the same tho.

  #5  
Old November 13th, 2005, 02:57 PM
Orchid
Guest
 
Posts: n/a
Default Re: Deselect a Radio Button at Lotus Note

I am new to Lotus Note. Even I know the logic, but not sure where or
which Info list should I place the formulas.

Please help! Thanks!

  #6  
Old November 13th, 2005, 02:57 PM
Salad
Guest
 
Posts: n/a
Default Re: Deselect a Radio Button at Lotus Note

Orchid wrote:[color=blue]
> I am new to Lotus Note. Even I know the logic, but not sure where or
> which Info list should I place the formulas.
>
> Please help! Thanks!
>[/color]
Maybe ask in comp.groupware.lotus-notes.programmer group or other
comp.groupware.lotus-notes groups.
  #7  
Old November 13th, 2005, 02:57 PM
Orchid
Guest
 
Posts: n/a
Default Re: Deselect a Radio Button at Lotus Note

Thank you!

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.