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

Is this form using radio buttons safe from SQL Injection?

I'm trying to make a dynamic search feature on my website, where the user can choose to look up claim information based on ID, Make, Model, or Date. There is a search bar to type in the data and the radio buttons provide the search filter. I'm…
code_dough
  • 97
  • 1
  • 7
2
votes
1 answer

How to implement radio buttons for specific scenario in Rails

I've searched around but haven't found an answer, but I'm also not sure what terms to search for, so please point me to similar questions if you know of any. Scenario: I have posts. I have an admin side and a public side. I want a single post…
Jim Connors
  • 297
  • 4
  • 14
2
votes
2 answers

How To Set The Correct RadioButton.IsChecked Property True By Binding To A ViewModel?

I have the following scenario where a class like this: public class PetOwnerViewModel{ public PetOwnerStatus Status{get{return _petOwner.Status;}} public ICommand SetStatusCommand {get{...}} } Is DataContext to a group of RadioButtons similar…
Grokodile
  • 3,881
  • 5
  • 33
  • 59
2
votes
2 answers

setting defaultChecked in radio button is not working in react

I need to set the defaultChecked on page load which can later be changed by the user (this['input' + item.key] = element)} name={item.key} placeholder='Config value' defaultChecked={item.value === true} …
Asha Aradhya
  • 23
  • 1
  • 5
2
votes
1 answer

How to select one Tkinter Radiobutton per variable

I am trying to make a loop that populates 9 radio buttons, each with 4 options, and placed in a grid. The following code words, however, I can select more than one option for each question. My understanding is that for each variable I should only be…
Austin
  • 103
  • 10
2
votes
0 answers

Is there a way to adjust the size of a drawable next to a radio button?

I like to give users a choice between three options. I am using a radio group and three radio buttons. I also like to have an image next to each radio button. I have figured out I can use a drawable like the xml code below:
LeaningAndroid
  • 445
  • 2
  • 4
  • 12
2
votes
2 answers

laravel 7 adding radio in register form

i want to add radio in register form. For when someone want to register he need to choice if its man or woman and when i try to register its not work dont save in database Someone can helping me add the radio for choice man or woman. create user…
user12894447
2
votes
1 answer

radio button doesn't fit inside a table?

i'm working on this calculator and when the user select one of the type a little table should appear to select a type from tha table but the radio button that should be clicked doesn't fit into table this is lookup in ccs code of table and the…
Alchemist
  • 73
  • 5
2
votes
1 answer

RadioBox Signal Confusion

I tried to create multi QRadioButton in different QGroupBox. After that I would like to print() which QRadioButton pressed in screen. When I push first button in QGroupBox there is no problem. However, In second try first and second button printted…
Gokberk
  • 65
  • 8
2
votes
1 answer

Firefox - Remove Dotted Line Around Radio Button

So I've seen the related posts on how to remove the dotted line around element in Firefox. But still no joy. I've a unordered list with each LI containing a label and a radio button. If I set the background color of the LI to any color then…
jigglyT101
  • 984
  • 1
  • 15
  • 33
2
votes
2 answers

How to create a custom radio button?

I have been looking online to create custom check boxes and radio buttons. I have managed to create a checkbox but an issue I am having with the radio box is that clicking on it does not activate or trigger the onChange call on my input. I currently…
Nukodi
  • 335
  • 1
  • 9
  • 24
2
votes
2 answers

dp or sp in Android Text

I have a question about Android and I need your help. I have the following RadioButton:
VanessaF
  • 515
  • 11
  • 36
2
votes
0 answers

Get the title of a ggplot from the selected choice from radioButton

I am trying to get the title of a ggplot graph from the selected choice from the radioButton that a user picks. I really appreciate any help. Here are the relevant pieces of code with faked data: Sidebar sidebar <- dashboardSidebar(sidebarMenu( …
2
votes
2 answers

Radio button checked by itself when scrolling

I made a RecyclerView that shows 32 question and 4 answers as RadioButtons. When I click a single radio button, it works, and I show a toast when it is checked. But when I scroll the RecyclerView`, it shows toasts like I checked a radio button. How…
AiHaQ
  • 105
  • 2
  • 7
2
votes
3 answers

Radio Button Array - Need Help

I have a radio button array that I need help with. Here is the code:
Kevin
  • 23
  • 2