Questions tagged [radio-button]
The radio-button tag has no usage guidance.
78
questions
0
votes
1answer
33 views
How to add a radio button in lwc datatable?
I am trying to add a radio button at the end of a datatable row, so basically I need two selection option, one is the checkbox given by default which is shown at the very front of each row, and a ...
2
votes
1answer
123 views
Why all selected radio buttons are reset when another is selected?
I`m writing a component that query from database Test (like school test) and create list of task that are tied to it in the base. Derivation of questions works fine but, when I select one of radio ...
0
votes
1answer
23 views
dynamic values to radio buttons [closed]
Im getting a http response which contains names of the groups.
Im trying to show the groups on the aura component and also do further operations.
apex code
@AuraEnabled
public static List<...
1
vote
1answer
32 views
Radio button requires two clicks to “check” even though conditional template renders
I am working on a component that has a simple 2 option radio group. I want to show and hide a div (template if:true) based on the selected radio option. What I have here almost works but I have to ...
1
vote
1answer
50 views
LWC Modal on Radio 'onchange' event does not retain the checked value
I have a functionality where I need to add a modal on click of a radio button.
My code is as below
selectRadio.html
<template>
<lightning-card title="New Investment Breakdown">&...
0
votes
1answer
38 views
Select only one radio button in a Visualforce page
I have a visualforce page where I search for an address, a list of addresses are displayed in table and when I select a row, the appropriate fields are filled to inputfields. My problem is that I ...
0
votes
0answers
57 views
How to get Flow Radio Buttons to have a horizontal layout?
I have some Radio Button which use a Picklist Choice Set inside a Flow.
The Picklist Choice Set has 10 options, which means it uses up a lot of vertical space.
Is there any way to make a Radio Button ...
0
votes
1answer
27 views
how to pass multiple selected radio button values to controller and based selected values update record
VF:
<apex:pageBlock>
<table>
<apex:repeat value="{!accList2}" var="a" >
<tr>
<apex:repeat value="{!a}" var="am">
<td> {!am....
0
votes
0answers
24 views
Radio buttons determine which fields will be filled out
I want to select 1 of 2 (or 1 of 3) radio buttons and have certain pageblocksections. I tried to follow about a dozen examples but to no avail. The 2 I have been try to get to work are below.
My VF ...
0
votes
0answers
72 views
Radio Button selection for Google Tag Manager
Can anyone tell me how to capture the value of a selected Radio button for use in Google Tag Manager/Analytics? The code below show the elements of the radio button group, and the highlighted line (::...
0
votes
1answer
1k views
Radio button needs to be clicked twice to get cheched
Below is my code I have 2 radio buttons, one of the radio buttons is checked by default using the "checked" attribute. I want to show different content when each of the radio buttons are ...
0
votes
1answer
183 views
Radio Button is not working when using same component twice on same page in lightning
I am facing an issue in which I am creating a lightning component with "lightning:input type = "radio". All is working fine but this is not working if I am using the same component twice on the same ...
0
votes
1answer
1k views
LWC update toggle checked/unchecked attribute from JS
First of all I’m new to LWC development so I would like to apologize if the question looks stupid.
I’m currently working on a LWC and I would like to create 2 toggles but I want only one toggle to be ...
1
vote
1answer
41 views
Help retrieving value of radio button
I have the following code to generate a group of radio buttons. I can't seem to retrieve the value of the selected item. Thoughts?
Component:
<aura:iteration items="...
0
votes
1answer
203 views
Labels not showing on radio button inside a Flow (called by lightning component)
I encountered a most wierd behavior and can't explain it.
I have a screen flow which I call from a lightning component, and on the screen of the flow the radio buttons labels are not displayed.
the ...
0
votes
1answer
479 views
Selected Radio button in Formula Field within flow builder
I created a screen in flow builder having a Radio Btn component(type boolean)
I also create a formula field smoke_lv(type boolean) to capture the selected radio button value.
I am using the ...
1
vote
1answer
100 views
Radio Button within Iteration - When user selects radiobutton, store the associated sourceId in attribute 'accountId'
Currently, I'm iterating through a wrapper that includes sourceId (aka accountId) and Opportunity Name, etc. When the user selects a radio button, I want to capture that sourceId in an attribute at ...
0
votes
1answer
183 views
How to setup help text for radio button with onmousehover
i was new to visualforce development currently I'm trying to setup help text or display some information when users mousehover on the radio button options.
But when i try to fetch the value with ...
0
votes
2answers
235 views
Pass multiple values from Lightning radio
I need to pass mutiple values to Lightning radio button onChange function. Here's my code;
<aura:iteration items="{!v.records}" var="rec">
<tr class="slds-hint-parent"> ...
0
votes
1answer
106 views
how to copy values to field in aura:iteration dynamically using Radio button with multiple rows
Here I'm trying to copy values from the output text table data to respect of their field which are price and Qty
Please take look at the below picture for an idea.
Here I'm using Inside two aura: ...
0
votes
0answers
16 views
Get the Selected radio button value via button click [duplicate]
I think this is a very dumb question sorry for this I am just doing some POC.
here is the code:
<lightning-radio-group
name="radioGroup"
label="Radio Group"
options={...
1
vote
1answer
127 views
Issue with Radio Button with text input
I am creating a cloudpage on web studio and using Radio Button to select the donation value to create a new opportunity (and a contact if not already exists) having the selected radio button donation ...
0
votes
1answer
411 views
AMPscript for Radio Button with text input
I am stuck at handling the value of radio button with text input. The radio button with static values are handled correctly. Here is the AMPscript for 1000, 500 and text input. Can you please help on ...
1
vote
1answer
121 views
Apex is deselecting my radio buttons
Basically I want an apex method to run when a radio button has been selected. I also want the image used as the radio button to change. But it seems when the method runs the radio button is unselected ...
0
votes
1answer
441 views
ui input radio button is not working
Hello all i am working on one requirement where i want to display table on the basis of my ui radio button selection but here once i select the radio button options then iam able to display the table ...
0
votes
1answer
53 views
Ui input radio not working as expected
Their is a requirement for creating two ui input radio buttons although i achieve that but here iam facing a unique problem the input radio is not deselected on the selection of second one both ...
1
vote
2answers
113 views
Facing problem in single select radio button?
I have done with almost everything. The only thing left is to prevent multi-selection of radio button. It should be a single select only.
---Controller--
public class ContactRoleOnOpp8 {
public ...
2
votes
1answer
4k views
Lightning Web Components - Radio button “checked” not retaining when navigating back and forth
I am not UI/UX person and I need help with setting radio button as checked when used in a LWC inner template-for-loop which involves page navigation and conditional rendering. I am able to get the ...
2
votes
1answer
660 views
Lightning radio selector in iteration disappears when option selected in another row
I have created a Lightning component that allows users to dynamically create their desired number of records. I implemented a data table for this. In my third column, I asked users to select from two ...
0
votes
1answer
1k views
Radio button and pick list fields value is not getting stored in the salesforce org
After finishing the basic lightning component trail I started writing another component of my own choice and when I hit the submit button I get the below error
if I cut out the pickList field and ...
2
votes
2answers
3k views
lightning:radioGroup - not able to select the options
My requirement is I want to show questions and its options on lightning component and they are populating as expected. However since each question may have 2/4 options, I have used lightning:...
1
vote
2answers
860 views
How to check the appropriate radio button based on its value
Please find below the Vf page and Apex class that I am using. I am fetching the rating value as URL parameter(/apex/FeedbackPage?rating=2) and storing it in a variable called rating. Its value can be ...
3
votes
1answer
637 views
Why does <lightning:radioGroup returns String rather than Boolean
I am getting a String value of 'true' from the <lightning:radioGroup when I expect to get a Boolean value of true
Component
<aura:component >
<aura:attribute name="booleanOptions" type=...
0
votes
1answer
49 views
Close and reopen VF page
I have a page loaded from a button on a custom object to create an email. It renders the body and subject from an email template and displays the results for possible edit with a rich text field. I ...
0
votes
1answer
37 views
Radio button not appearing
Drastically updated code/this question after getting more understanding. I think it would be best to use a checkbox for this field rather than radio button, and the issue seems to be dependent on the ...
0
votes
0answers
819 views
<input type=“radio” returning ON with onclick function
To my previous Question, I did some more debugging and ended up log with OnClick value: on
Good thing is, I have my LightningApp on the Internet Explorer which helped to get to the console logs(...
3
votes
1answer
1k views
Lightning radio button NOT getting the correct value (or modifying it)?
On the Lightning for Outlook, I do have a record creation button component. Clicking on it gets the custom record type selection. Based on what we choose(radio button), force:createRecord event fires. ...
8
votes
1answer
2k views
lightning:radioGroup is allowing multi-select
I have a lightning:radioGroup that shows record types for an object:
<aura:attribute name="recordTypes" type="String[]"/>
<aura:attribute name="recordTypeValue" type="String"/>
<...
0
votes
2answers
817 views
I have one radio button and inputfield in lightning [closed]
I have one radio button and one input-field..I am trying to achieve something like.if i click on the radio button , the input field should get active and value of that input-field should come ...
2
votes
2answers
7k views
Can't get data from lightning:radioGroup
I can't get value selected on lightning:radioGroup. It return undefined
<lightning:radioGroup aura:id="test"name="testName" options="{! v.options }" required="true" onchange="{! c....
0
votes
1answer
988 views
How to store boolean value against radio button
In my visualforce page I have two command button. I want to store boolean value into database against those radio button. I have chosen the field type as 'checkbox'. Please help me.
My vf code is
&...
0
votes
1answer
52 views
Radio buttom disable one filed out of three inputfields [closed]
i need some option like: three input fields linked with three radio buttons, initially all the fields should active, if i click first radio button it should disable 2nd & 3rd inputfiled, please ...
0
votes
1answer
55 views
Select Ratio only showing 2 options
we are having an issue here related to select radio.
We have a radio button which has potentially up to 5 options, but only the first 2 are showing up.
Here is the Visualforce page code:
<apex:...
1
vote
2answers
745 views
How to disable Radio Buttons (fetched from a Picklist Field) on a Visualforce page?
I'm trying to display Picklist field as Radio buttons on Visualforce page. On selection of any radio button, how to make other buttons disabled?
For instance there is a field by named "Lead Source" ...
0
votes
1answer
2k views
SelectRadio how to display radio buttons side by side
I need to display Redio buttons side by side. like below
But they are displaying like
My VF code so far (I need to render some part of the page based on user selection of Income/Expense/Transfer):
...
0
votes
2answers
1k views
Displaying Picklist as radiobutton on VF
I have a picklist with values as yes and no. On my vf i need to display the same as radio buttons and while saving the values i need to save them as picklist values from th controller.
0
votes
2answers
706 views
radio with values from picklist
I have a picklist with values and I need to display them not as dropdown but as radio-buttons, is there an easy was to do it? Maybe even without a custom controller?
3
votes
1answer
258 views
Radio buttons are not displaying on vf page
Here is the VF page:
<apex:page controller="rateQuestionsControllers">
<apex:form >
<apex:pageBlock >
<apex:pageblockTable value="{!rateWrappers}" var="...
0
votes
1answer
315 views
Labeling radio Options in visualforce
This is taking way longer than it should. I have the following . . .
<apex:pageBlockSection>
<apex:selectRadio label="Update Existing Contact" value="{!...
-1
votes
1answer
5k views
Please help me with radio button action in lightning component:: [closed]
I am unable to trigger the action for radio button in lightning component.
Here is the code for the radio button:
<aura:attribute name="opportunities" type="Opportunity[]" />
<aura:...