By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,296 Members | 1,723 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,296 IT Pros & Developers. It's quick & easy.

Deselect a Radio Button at Lotus Note

P: n/a
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!

Nov 13 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Orchid wrote:
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!

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
Nov 13 '05 #2

P: n/a
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!

Nov 13 '05 #3

P: n/a
Orchid wrote:
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!

Sorry. I noticed the Lotus Note after sending the message. This is an
Access group. The logic works the same tho.

Nov 13 '05 #4

P: n/a
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!

Nov 13 '05 #5

P: n/a
Orchid wrote:
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!

Maybe ask in comp.groupware.lotus-notes.programmer group or other
comp.groupware.lotus-notes groups.
Nov 13 '05 #6

P: n/a
Thank you!

Nov 13 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.