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
2 answers

Angular: How to delete selected data row?

I'm using list. When I click first and then I click second than I click first back. When I click the first radio button back it not function. And then when I click delete button, it deletes first and second. I provided the code…
swapy
  • 126
  • 4
  • 11
2
votes
3 answers

How to put a radiobutton on the most right

I'm trying to make a layout first two textviews in a vertical arrangement, then text, then put a radiobutton on the most right side with linearlayout. However, even though I typed 'android:gravity="right"', it does not move and just stick there. If…
June
  • 265
  • 1
  • 8
  • 21
2
votes
1 answer

Radio buttons error, multiple choices allowed

I'm building a form using bootstrap 4; I have to use radio buttons to ask the level of knowledge of a language and I have a div for each language with 6 inline radio button inside (one for each level). The issue is that all boxes are checkable at…
Tox46
  • 77
  • 6
2
votes
0 answers

Database appears, but data cannot be filtered or searched

sorry if the explanation is incomplete. I just learned about Android. and in my project this time, I made a filter feature using the radio button I followed a totorial, but the tutorial uses static data, then I change it to dynamic using my data in…
2
votes
1 answer

Updating multiple radiobuttons in one observer only works on the first radiobutton

I'm completely puzzled why two working lines of code (individually), which reset a respective radiobutton to empty (selected = character(0)) only reset the first line when put together inside 1 'observer' this is the minimal…
Mark
  • 2,789
  • 1
  • 26
  • 66
2
votes
3 answers

Jquery, click() method on checked radio button

I created a huge form. I have to do many actions with Jquery. I have completed the part where I can make actions. It is time for me to do controls. By controls I mean, let's say I will edit the data and I have to gather which form element is…
Revenant
  • 2,942
  • 7
  • 30
  • 52
2
votes
0 answers

How do I set initial value for radio button in redux-form?

I'm using the Field-component and setting type=radio and in the component rendering the input I have set checked={props.input.value}. The group currently contains 2 radio buttons, but 1 more will soon be added. I have added initialValues: { method…
Endorel
  • 31
  • 3
2
votes
1 answer

Radiobutton navigation and value storing

I am trying to write a multiple choice quiz using Python Tkinter. I have a 2 part question. I have radio buttons that display the choices and collect the selected option. I also have a created a button to navigate to the next question or back to the…
rbrt
  • 21
  • 1
2
votes
1 answer

Vertically align the radio buttons and text

I'm trying to make the following styles coexist in my code to apply them to the radio buttons, but I can’t get them both to work at the same time. This is with both: display:flex; and vertical-align: baseline; This is without: display:flex; but…
ana
  • 417
  • 2
  • 10
2
votes
1 answer

Radio button in Angular Reactive formArray - Select one item in an array

I'm having a formArray namely "address" and this will be a dynamic, once the user clicks the "Add Address" button immediately one address form will add. Each address form has one radio button - User needs to select any of the address has a PRIMARY…
2
votes
3 answers

How do I test for radio?

I have an array of element id's and would like to check for the type of element for further processing. My test for select, text, hidden and password work fine but not for radio. Here is roughly what I use for each. if($('#elemID').is('select'))…
Chris O
  • 689
  • 8
  • 22
2
votes
1 answer

Adding minimum alongside maximum for Checkbox selection limit function in ReactJS

I have a react app which maps JSON values into checkboxes, and the JSON includes a min/max required value, I have made a function which sets the maximum value to the checkboxes from the JSON and it works fine, but whenever I try to add the minimum…
Laflm
  • 187
  • 1
  • 8
2
votes
3 answers

Only one radio buttons being selected out of four questions

I want to make a list of four questions and four options for each question. I have successfully fetched the questions with foreach loop but, radio buttons do not seem to work with foreach loop. Eg: I chose one answer form the first question and…
2
votes
1 answer

Shiny reactive value with radiobutton

I am creating a Shiny app meant to display a choropleth map. I would like to change reactivly the values to show on my map with radiobuttons. It worked fine with normal button, but i am struggling with the radiobutton now, any ideas? you can…
Oscar Jnn
  • 154
  • 1
  • 19
2
votes
1 answer

Material-ui FormControlLabel not checked on default

I have a problem with my formcontrollabel. I want the radio button to be checked on default, but property checked doesn't seem to work. I have tried with logical statements, simply giving true as an argument, but nothing seems to work. Any…
ingielek
  • 41
  • 2
  • 3
1 2 3
99
100