Questions tagged [radio-button]

Radio buttons are elements used in forms. They let a user select exactly one of a limited number of choices.

Radio buttons are a GUI element found in many types of forms, both on the web and in standalone applications, and they are used to let the user select one option out of a set of choices. It is often useful to provide some form of visual grouping around a collection of radio buttons so as to help the user see more clearly what they are picking between.

Where there is a binary choice, it can be better to use a instead. Some types of choices may be better suited to the use of a element or a element, though radio buttons have the advantage of allowing the user to see all the possible options (and often descriptions of them) at once, which enhances discoverability at a cost of occupying more screen space.

11983 questions
2
votes
0 answers

Why does an unclicked RadioButton click event happen before the program closes?

I have a legacy Delphi 6 program that inexplicably receives a click event. The code has been reduced to the following minimal example for a single form with two RadioButtons: procedure TForm1.RadioButton1Click(Sender:…
joe snyder
  • 3,629
  • 2
  • 21
  • 13
2
votes
1 answer

Prepended data into div and now can't control elements

I have the function below that fires when a radio button with an ID starting with "accounts_status_" is clicked. I have another function which prepends a div creating the same radio buttons but with a different ID endings e.g. "accounts_status_1",…
Jim
  • 227
  • 1
  • 3
  • 6
2
votes
2 answers

ASP.NET MVC 5 Can't bind radio button list on View

I'm having an issue with binding my model to view. When i try to create a radio button group with my Question model, view posting every boolean false. Model Edit: Changed fields to property. public class Question { public string Name { get; set;…
Eren Peksen
  • 175
  • 2
  • 10
2
votes
5 answers

Disabling radio button after click

I need some help please This is the html

match1

teamA teamB

match2

teamC
user735205
  • 25
  • 1
  • 1
  • 4
2
votes
3 answers

WPF Mvvm Radio Button Binding not setting initial value from viewmodel

I am having quite a bit of trouble with a radio button group. initially the radio buttons do not set the value from the ViewModel but when selected function properly. so basically the user does not know what is the initial value. here is my xaml.…
BastanteCaro
  • 1,269
  • 1
  • 13
  • 24
2
votes
2 answers

innosetup - capturing events from wizard page controls

I have seen answers for capturing events from user-created controls on wizard pages, but how do you do it for controls created as a result of a call to CreateInputOptionPage? For example: InputOptionPage := CreateInputOptionPage (wpWelcome, …
rossmcm
  • 5,493
  • 10
  • 55
  • 118
2
votes
1 answer

Radio button returns wrong answer if no selection was submitted

I am using the below code for my online quiz using ASP.NET and SQL Server 2008. I need my radio button to return wrong answer if nothing checked after pressing submit.
Amer
  • 21
  • 1
2
votes
1 answer

Custom Checkbox / Radio Buttons Focus

I've created Custom Checkbox / Radio using:
2
votes
0 answers

Show sum of the dynamic price when click on radio button in jquery

I'm in very bad situation with a project which is related to a travelling website. I'm unable to figure out that how do I calculate the total amount of each passenger's preferred room type. I've two passenger's records in database. 1) Maggie …
Code GuruDev
  • 348
  • 3
  • 11
2
votes
1 answer

How to group radio buttons present in different panels as a single group?

I have to group RadioButtons present in different Panels as a single group. Sa,y for example, I have a RadioButton named radBtn1 on panel1 and radBtn2 and radBtn2 on panel2. Now I want to group all these radio buttons as a single group so that only…
2
votes
2 answers

Some questions about radio buttons in Django forms

This is what I have at the moment: views.py def activation_signupcount(request): if 'datestart' not in request.GET: form = SegmentForm(request.GET) #form2 = Period(request.GET) return…
super9
  • 29,181
  • 39
  • 119
  • 172
2
votes
2 answers

Objects are not valid as a React Child (found: object with keys{id, name})

im trying to implement radio buttons into my react native project with a callback from the component Im using react-native-radio-buttons SegmentedControls into the project App.js import files.... import RadioButtons from…
Ayush Agarwal
  • 295
  • 2
  • 16
2
votes
1 answer

Checkboxes and radio buttons in different objects react in all objects at the same time (undesirably)

My problem is that I have a simultaneous reaction on clicking a check box or radio button in different objects. Once I click on a check box in object A and let's say check it, same check box in objects B,C and D will be checked as well. I have a…
DStage
  • 33
  • 2
2
votes
3 answers

CSS Challenge: Custom Radio Selects

I designed a pretty cool looking form layout but have no clue how to make the radios on it work! Below is a mockup of the the form: I've already created the CSS for the text inputs (and will attach it below for anyone else looking for something…
Robert Klubenspies
  • 438
  • 1
  • 7
  • 21
2
votes
3 answers

Firefox: Selected radio button changes automatically when page is refreshed

I have three radio buttons, that first is selected (with checked="checked"). But when I refresh the page the selected input automatically toggles between first and second input! That's strange! With firebug, I can see that only the first input has…
Taha Jahangir
  • 4,774
  • 2
  • 42
  • 49