Questions tagged [radio-button]
Radio buttons are elements used in forms. They let a user select exactly one of a limited number of choices.
11,990
questions
0
votes
2
answers
41
views
How do you disable change in radio button selection using keyboard arrows? [closed]
I have an HTML form with 6 radio buttons. Each radio button, when selected, makes an API call to the backend and fetches some data to populate the next select input in the form. If one selects a radio ...
-3
votes
0
answers
30
views
On Select Radio Button of Add then Add +1 in value of same row other column while Table got with the help of Php database [closed]
I create a table with the data retrieve from server , Now I need to on select radio button add +1 in the same row one column value but when we selected another one then remove one from last increased ...
0
votes
1
answer
100
views
Making categories appear conditionally in the frontend with radio button in WordPress custom field
Problem solved:
I would like to thank the user @kofeigen for his interest. He did such a great job. He made the system I wanted work exactly.
I added a custom field with a radio option to the category ...
0
votes
1
answer
35
views
Tick radio box based on label next to it
I am trying to automate a few questionnaires as a hobby. For years I had to deal with them and I was always wondering what the best ways to automate them were. Now I have reached a point where I can ...
0
votes
0
answers
15
views
AngularJS (1.5.0) nested ng-repeat with radio button not initializing checked properly
I use a dynamic name attribute technique.
I'm using AngularJS verison 1.5.0.
When I run this AngularJS example (code below), which has nested ng-repeats (so I use $index and $parent.$index), I expect ...
0
votes
2
answers
44
views
Is there is a way to remove the purple frame on the selected button of Radio Button Group (Display as Pill Button)? Oracle Apex
There is a purple frame on the button which is selected (When we clicked on it has purple outline) . Is there is any way to remove it?
I tried a lot of thing even with CSS but not working. What am I ...
0
votes
0
answers
36
views
I have radio buttons in react, but users cannot select one of them
I have following code on React in JS. I have 4 radio buttons. But when users try to select one of them, they cannot. What could cause this? When I try to debug the code myself, I see that handleChange ...
-2
votes
0
answers
29
views
Vue Js Handle multiple questions array radio buttons and get the selected answer values
How to get selected radio button values from the multi dimension array questions?
questions: [
{
id: 6,
question: 'What is the largest planet in our solar system?',
...
0
votes
0
answers
21
views
How to select a specific radio button using driver.find_element() with multiple attributes?
I am trying to select the radio button "Higher" as shown in this image
Here is the full code for the tree containing that element.
<tr>
<td class="label">
...
0
votes
0
answers
10
views
Link spinner to different radio buttons in android studio
This is a snippet of the code in my Main Activity.
RadioGroup radioGroup;
TextView TxtView;
Spinner spinner;
TextView result;
ArrayList<String> countries;
ArrayAdapter<...
0
votes
0
answers
21
views
After i chose an option from a RadioListTile i want to keep just the text title
enter image description hereI want after i chose an item from a radio list, to keep just the title of radio list and make the ckeckbox, if i can name it like that, dissapear.
Do you have any idea on ...
0
votes
0
answers
34
views
How to display a plotly graph in metric or imperial units plus a minor question regarding to position 3rd y-axis
I want to create using plotly a graph similar to the attached picture. My current code is working but I have not figured out two things:
1: The third y-axis should be inside the right y-axis (with ...
0
votes
2
answers
47
views
disable select for certain input
I want to disable a select attribute when my type = radio input is checked.
Here's the part of the code i'm talking about:
<input id="societeInterne" name="radioSociete" type=&...
0
votes
0
answers
28
views
How to sort SharePoint List column values in Power Apps Radio button
I have a SharePoint list "Diseases List" and inside this, I have added different columns, i.e., [Disease, Doctor name, Doctor fees]. Now, I want to bind and sort the "Disease" ...
0
votes
1
answer
48
views
AHK variable folder path dependent on radio button choice
Good day,
I'm trying to create a script for AutoHotKey (AHK). The script itself already works fine: a small GUI with two radio buttons for each color (black or white), but I want to have a single ...
0
votes
1
answer
45
views
AHK prevent radio button from executing action
Good day,
I'm trying to create a script for AutoHotKey (AHK). The script itself already works fine, but my issue is, that in the GUI when I press a radio button or checkbox ('Color' and 'Option' ...
0
votes
2
answers
41
views
Using 3 OptionButtons - trouble with actuation and variable definition with proceedures
My objective: Use radio or option buttons to select predefined cells and populate them with a alpha/numeric designator (in this case "N1"), Using If-Then-Else, allow user to select a ...
-1
votes
1
answer
39
views
How to create an if-else in which you can not pass to other activity unless at least 1 radiobutton is selected. Tried too times but still I don't know
Hello i am fairly new in kotlin and I am having a little problem. I am trying to make a button that went you click you pass to other activity but only if one of the three radioButtons is selected. I ...
0
votes
1
answer
60
views
Binding value of radio button when i retrieve data
I'm trying to retrieve value of radiobutton which is 'isConforme' in my MAUI c# desktop app.
The value is not properly bind in my view.
Here is my code
View:
<?xml version="1.0" encoding=&...
0
votes
1
answer
33
views
Form only displays when page is refreshed
I am trying to create a mock ice-cream shop website in order to improve my JavaScript. The trouble with this page is that each radio button, upon being checked, is meant to display one of two forms. ...
0
votes
0
answers
30
views
Radio button (column 1) not getting selected if I click on any other column in a row in angular js
I have created a simple 3 column table with column 1 as a radio button. The problem is upon clicking any of the other two columns, I could not get a radio to be selected. The radio gets selected when ...
0
votes
3
answers
47
views
How to change color of checked radio button on hover?
<!-- This is my html input tag -->
<input class="custom-radio" type="radio" name="selected_center" value="{{center.id}}"
id="...
0
votes
0
answers
34
views
How to select radio button using Robot Framework?
<input aria-invalid="false" autocomplete="off" id="BaseId" type="text" class="MuiInputBase-input MuiInput-input MuiAutocomplete-input MuiAutocomplete-...
0
votes
0
answers
24
views
Radio no return
I am creating a form where the person will need to answer a questionnaire with some questions, knowing that they will all be of the radio type, being able to select only one answer from those listed (...
0
votes
1
answer
39
views
state variable is getting the previous value on input[type===radio]. or working on double click only
This is the code for my react project. I am trying to get the value assigned to the input type radio but it is not working as expected. check my code when I am using onchange the "value" in ...
0
votes
0
answers
48
views
how to toggle between two radio buttons and it should open a seperate component when click on it in reactjs
I am creating a login page and it have two different component named as Admin login and Customer Login which are shown as radio button in login form and If i click on customer login radio it should ...
0
votes
1
answer
36
views
Script - for two radio button and the result in last text field have to change the color according value of radio button and two fields
sorry but my script knowledge is verry poor. I know how to set the properties of field and text in forms, but im not so confident with scripts.
I have one PDF form, two radio button, OptionA and ...
0
votes
0
answers
14
views
(ReactJS) Radio input selection persists visually after re-render
I'm trying to set up a simple, quick example app in React and am encountering this weird issue with radio inputs. I have 3 radio input options, lined vertically, and they have certain values. When a ...
1
vote
1
answer
22
views
React - dynamically update UI based on radio button selection
Question
I'm working on a web application feature that calculates the heat insulation factor for a specific area. You can check out the live Codesandbox example here (it's the third red area with the ...
0
votes
1
answer
47
views
Android Custom view that behaves like RadioButton/CheckBox
I have a following custom view
that have 2 text fields and a RadioButton, I'd like it to behave like a RadioButton (when it comes to talkback)
Currently:
When selecting the customRadioButton it says
...
0
votes
1
answer
48
views
Python - My CTkRadioButtons accept more than one selection
I have a problem with the three radio buttons, which is that they accept all of them to be selected at once. How do I prevent this thing, and when I press the other button, the selection goes back ...
0
votes
0
answers
39
views
How do I get Thymeleaf to read the value of a radio button?
I can't seem to get Spring Boot / Thymeleaf to determine if a radio buttons is checked or not.
I am pretty new to Thymeleaf so I assume it's something simple I am missing.
My "Search DTO"
@...
0
votes
3
answers
61
views
Show / Hide content using radios without Javascript
I’m trying to show/hide some content just using CSS and radio buttons. I found something on Stack Overflow that does the trick
https://jsfiddle.net/LLornfn8/
However, I need to wrap my radios in some ...
0
votes
0
answers
21
views
Python radio buttons not returning correct values, nor is default button being set
I am writing a Python class that accepts a list of radio button names, produces a dialog box, sets the first radio button as the default, and returns the corresponding index for the radio button ...
2
votes
1
answer
18
views
Disable Radio Button Group Depending on Prior Group
I have 2 sets of 2 radio buttons. The 2nd group should be disabled unless Yes is selected in the 1st group. However, the 2nd group needs to be cleared and disabled if the user switches from yes then ...
0
votes
0
answers
18
views
Submit multiple groups of radio button React JS
I have component Quiz, which is one big form separated by four slides (im using Swiper to separate each form element for their own slide). Form has 3 groups of radio buttons: square, style, deadline, ...
0
votes
1
answer
82
views
How can I assign default values to an array in Angular when the data is loaded dynamically?
I have an Array called 'habits'. like this
I show it in a table with radio buttons (yes, no).
<tr *ngFor="let habits of masterDate.data.habits; index as x">
<th class="...
0
votes
0
answers
30
views
Conditionally preselect radio button in Drupal Webforms YAML
I am trying conditionally preselect a radio button in Drupal Webforms (I assume this has to be done with YAML?).
I have a hidden field "ref" which can have 1 of 4 values (de, fr, it, en).
...
0
votes
1
answer
51
views
Radio button group not working as expected in Blazor
I have below radio button group in Blazor App.
By Default,IsExternal is false. When I change to True, backend value changing to true but the UI still selecting false. When I try second time, the UI ...
1
vote
1
answer
26
views
How can I use Angular to determine if a given value matches the value of a specific radio button in my application?
I have a list of Arrays. such.
I show this in ratio buttons. like this
I want to click the check box similar to this value in the data loaded from my other array
How to resolve this?
[(ngModel)]=&...
0
votes
0
answers
18
views
in javascripts When the Mr. or Mrs. radio button is clicked, it should be displayed in the P element, which is not the case [duplicate]
let input=document.querySelectorAll('input');
let button=document.querySelector('button');
let p=document.querySelector('p');
button.addEventListener('click',()=>{
p.innerHTML=`شما ${input.value}...
0
votes
2
answers
83
views
how to add tick icon instead of bullet icon in MUI radio button
i need to add CheckCircleSharpIcon from '@mui/icons-material/CheckCircleSharp' instead of bullet icon
{res?.map((radiooption, index) => (
<>
<RadioGroup
aria-labelledby="demo-radio-...
0
votes
1
answer
55
views
Set value of a button used as a radio button programmatically
I am trying to set a value of a button which is used as a radio button via code. I am using reactive forms.
I tried setting the initial value of the buttons on ngOnInit
ngOnInit() {
this.form = this....
0
votes
0
answers
32
views
Create URL to open specific tab in a Menu
I created a tab menu using radio function (see code below). Ths code requires now javascript but I am wondering if thered is a way to create a url with hashtag that will open that specific tab.
I ...
0
votes
4
answers
43
views
Multiple radio button groups all toggle on the same click
In my angular app I just tried to create multiple radio-button groups. A group looks like this:
<input [formControl]="ctrlx" type="radio" [value]="true" id="idx&...
0
votes
1
answer
26
views
I can't assign a value dynamically on an input type: radio / Angular
I'm quite lost, I'm trying to build the template of a form dynamically depending on the url, but for some reason i can't set the attribute value on the radio type input.
form-cake html
<form [...
0
votes
0
answers
8
views
Form with radio button that when checked will allow person to enter a number
I have a form for people attending a gathering. if the select the Yes radio button I want to have then be able to enter the number of people that will be attending with a default value of one. this is ...
0
votes
1
answer
65
views
How can I make a line break in the label of a pretty radio button?
I'm building a web platform with shiny in R Studio. I got stucked with setting line break in radio button choices because I need to put long choice names with method names. Here is the example code.
...
1
vote
2
answers
59
views
Convenient way to get all associated values of tkinter radiobuttons?
Is there a convenient (intrinsic) way to access to attributes of radiobutton (tkinter, python)?
I did serious search not only on Stackoverflow but also internet, many similar questions but the answers ...
0
votes
0
answers
15
views
python selenium click on mat-radio-group fails
I'm trying to click on a radio button using python selelnium but I receive error. The html code of the radio button is this:
<mat-radio-button class="mat-radio-button mat-accent" value=&...