473,549 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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!

Nov 13 '05 #1
6 3860
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.Visib ile = (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
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
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
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
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.programme r group or other
comp.groupware. lotus-notes groups.
Nov 13 '05 #6
Thank you!

Nov 13 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1503
by: Ruskin | last post by:
Is there an easier way to do this (what I am trying to do, is have 3 radio buttons and when the submit button is clicked, easily determine which radio button was selcted). NOTE: the radio buttons are in 3 different cells of a table, so I can't use the <select></select> tags.... HTML: <form name="SelectOrder"> <tr><tr><input type="radio"...
4
3261
by: Oscar Monteiro | last post by:
I Have to sets of Radio buttons like so: <input type="radio" name=p1 value=1> <input type="radio" name=p1 value=2> <input type="radio" name=p1 value=3> <br> <input type="radio" name=p2 value=1> <input type="radio" name=p2 value=2> <input type="radio" name=p2 value=3> then a text area and a button:
5
3087
by: Digital Puer | last post by:
I have the following HTML form: - radio button A (default selected) - radio button B - input field, of type "file" with "Choose" button - submit button I would like to have it so that if the user clicks on the "Choose" button of the input field (to select a file on the local disk), then radio button B is automatically
2
1757
by: tshad | last post by:
I have 2 radio buttons: <asp:RadioButton ID="radDetail" GroupName="detailSummary" Text="Detail" checkedChanged="RadDetail_Clicked" runat="server" /> <asp:RadioButton ID="radSummary" GroupName="detailSummary" Text="Summary" checkedChanged="RadSummary_Clicked" runat="server" /> </p> I want to have RadDetail_Click or RadSummary_Click...
1
8823
by: Jerry | last post by:
We have a 10-question quiz for kids, each question being a yes or no answer using radio selections. I'd like to keep a current total of yes's and no's at the bottom of the quiz (if the user selects yes to question 1, the total of yes's increases by 1). I've been searching for a while but I'm not sure I'm searching with the right keywords. Can...
7
13618
by: deepagulati | last post by:
Hi, I need an urgent help from you. When we dynamically genrate any list box (Select Box) it shows one default value as selected. Is there any way that we can deselect that value. I tried with document.form_Name.ListBox_Name.options.selected =
8
2070
by: helpful sql | last post by:
Hi, I have 2 radio buttons on my Windows form control. The radio button's CheckedChanged event disables or enables other controls on the form based on the value of the Checked property. When the form loads, I want to check off one of the radio buttons. So I put the code to check off my radio button in the form's load event. But the...
4
13262
by: liltwese | last post by:
Hi, i'm new to VB. I have a problem with de-selecting radio buttons in group box containers. I've tried to set focus to other objects under Sub New (initialization) but it didn't work. The rdo buttons were still selected. I've tried setting this: rdoName.Checked = False, as well, that didn't work. For some reason the top radio button in the...
11
2258
by: Twayne | last post by:
Hi, Newbie to PHP here, no C or other relevant background, so pretty niave w/r to the nuances etc. but I think this is pretty basic. XP Pro, SP2+, PHP 4.4.7, XAMPP Local Apache Server 6.something I think and running as a service, Using NoteTab Pro as an IDE (works well). If you need more, just ask. In one functioning form:
0
7532
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7461
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7730
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7491
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7823
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5101
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1068
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.