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
1 answer

Callbacks of Gtk Radio Buttons in Julia

I'm trying to revive and old code of mine, which used radio buttons in Julia. However, callbacks don't seem to work (similar callbacks to checkboxes and buttons do work). Here's a minimal example: using Gtk function test() win =…
vukung
  • 1,824
  • 10
  • 23
2
votes
1 answer

RadioButton Data Validation in Silverlight 4

I have a form that contains four radio buttons that belong to the same group. The user has to check one of the buttons before clicking the submit button. Is there a way to make sure that the user has checked one radio button.
2
votes
3 answers

Uncheck radio buttons using jQuery general selectors

I have the following form (it is dynamically generated and I have a few copies of it named form-0 to form-3)
what is bla?
aaa…
ilyo
  • 35,851
  • 46
  • 106
  • 159
2
votes
3 answers

Why is my radio input element inside a custom component not working properly with reactive forms?

I am trying to write a component that provides a reusable custom radio input field. I have created a real simple sample in StackBlitz that I hope communicates what I am trying to do. This simple app does not work as expected and I have not yet…
Tom G
  • 85
  • 10
2
votes
1 answer

Vaadin 14 radiobuttongroup display custom Strings as options

I am using Vaadin 14.1.21 + Java JDK/JRE 1.8 I have a single-select radiobuttongroup with a boolean field behind it in the DataClass. I don't want to display "true" / "false" as options for the user, but custom Strings, let's say "red option" for…
Cribber
  • 2,513
  • 2
  • 21
  • 60
2
votes
1 answer

Display component produced by function, replacing previous component on screen

showButtons(1) displays the radio buttons for frame number 1, showButtons(400) displays the radio buttons for frame number 400. This current code displays all radio buttons for each frame up to 400 BUT I want one set of radio buttons displayed…
Sue
  • 225
  • 3
  • 9
2
votes
1 answer

How can I fix RadioListTile list in flutter?

I have a list like that List itemList = [ IdText(1,'hello'), IdText(2,'hallo'), IdText(3,'ciao') ]; and I want to do a radiolisttile; I show the text and I save the ids in map.But I have an error(selected button not colored), How can I fix…
i.a
  • 35
  • 1
  • 8
2
votes
3 answers

Check if all radio buttons checked having particular value

Show Hide and another radio button on the same page
vetri02
  • 3,199
  • 8
  • 32
  • 43
2
votes
6 answers

Why does IE8 fail to resolve my JQuery selector for a checked radio option?

This following line works as expected in Firefox but IE returns 'undefined'. var selectedChoice = $("input[name='my.test[0].SelectedOption']:checked", '#myForm').val(); Here is a standalone sample that you can run... Note the problem seems to be…
Justin
  • 10,667
  • 15
  • 58
  • 79
2
votes
1 answer

Bug with jQuery tabs and radio button

There are a bug when the user select a radio button on the second or the third tabs (jquery-ui). The radio button on same position in the first tabs is selected instead of the real selected radio button. https://jsfiddle.net/qy58n2zc/ Do there are a…
julien c
  • 57
  • 5
2
votes
4 answers

How to add space between label and radio button? Bootstrap 4

I tried this solution but it didn't work, any advice how it can be achieved?

Signing on…

Json
  • 655
  • 10
  • 27
2
votes
1 answer

Alignment problem when changing label font size with radio buttons in Bootstrap

I am working with the bootstrap radio button style and I have a problem with the alignment between radio buttons and their labels. The main problem arises when I change the font size of the label: The radio button stays with the same size…
2
votes
2 answers

Prevent radio button check and show an alert

I'm trying to show an alert if a certain radio button in a group is checked and then to check the previously checked radio button again. I was thinking of two solutions: Adding a disabled attribute, but click events are then not fired so I can't…
pimvdb
  • 151,816
  • 78
  • 307
  • 352
2
votes
1 answer

Android - Dynamic Radio Buttons Problem

Please help me out on this one, Im trying to produce 2 radio buttons in a for loop dynamically depending upon the user input waht i want is to have radio buttons like *Radio Button1 *RadioButton2 *Radio Button1 *RadioButton2 *Radio Button1…
Mohammad Usman
  • 447
  • 1
  • 7
  • 9
2
votes
1 answer

ngModel and checkbox/radio not working properly

I made html template for my app. Basically it's a radio/checkboxes with text inputs which contain answers to questions. It worked just fine until I've decided to add ngModel to them. The thing is that when I add 2 or more answers and click on a…
DerzkeyBK
  • 165
  • 1
  • 9