Questions tagged [radio-button]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
168 views

I want to enable my buttons on 1 click of radio button but want to disable the buttons if clicking it twice. how to achieve that

So i have a code in which If I am clicking on radio button once then defined lightning buttons are enabled but if I am clicking on it twice those lightning buttons should be disabled again. I could ...
SF Learner's user avatar
0 votes
0 answers
92 views

LWC radioGroup hide option labels

I'm struggling with the radiogroup lwc. I only want to display the radio button, I don't want to display the option's label and I want my radio button to be centered in it's div. The only thing I ...
CelineD's user avatar
  • 43
0 votes
1 answer
324 views

set radio in lightning data table from object record

I have a data table with max-row-selection="1" attribute to show radio button. Once user select radio button for a row and save that selected record checkbox field will become true in the ...
Akash's user avatar
  • 361
1 vote
2 answers
939 views

Get localized string / translation of an object record type name / description in a flow screen

I want to show the translations / localized strings of an object record type in a radio button element in a flow, however configured translation is not shown. Any idea on how to get RecordType ...
HeXor's user avatar
  • 215
2 votes
1 answer
9k views

Why does the radio button has checked = false , but is selected on screen? [duplicate]

Why when I select a radio button option do I have checked = false ? i guess it's why checked and onchange are working at the same time...but i don't know what to do because I need both. EDIT: I tried ...
Cline's user avatar
  • 143
1 vote
3 answers
4k views

How can I get the value of the selected radio button?

I want to get the value of the selected radio button, i tried it through the function handleRadioChange(event), but I'm recieving that Uncaught TypeError: Cannot read properties of undefined (reading '...
Cline's user avatar
  • 143
0 votes
3 answers
68 views

unable to set the first record as selected in html table

I have HTML table where i am displaying the list of account records and based on the selection of record i am updating the details . I am trying the set the first record radio button as selected on ...
sfdcudhay's user avatar
0 votes
0 answers
338 views

Is there a way to pass sobject record from html to lwc on radio button change

I am displaying list of contacts in table in lwc. I have a radio button placed in each row of the table. On clicking that, I'm able to send the contact record id but I want to send that particular ...
sfdcPal's user avatar
1 vote
1 answer
1k views

LWC - Radio Button behaving like checkboxes

In my LWC component, I have an html table where I would display a collection of records. I cannot use a lightning data-table in this case, since what I want is a radio button selection, not a checkbox ...
user3704562's user avatar
0 votes
2 answers
6k 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 ...
adnan_aust's user avatar
2 votes
1 answer
1k 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 ...
senoron's user avatar
  • 192
0 votes
1 answer
430 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<...
Tejas's user avatar
  • 57
2 votes
1 answer
3k 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 ...
Carryonplease's user avatar
1 vote
1 answer
2k 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">&...
Bhoopesh Chauhan's user avatar
0 votes
1 answer
2k 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 ...
Kostas Karagiannis's user avatar
0 votes
0 answers
1k 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 ...
Robs's user avatar
  • 9,187
0 votes
1 answer
215 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....
Ram's user avatar
  • 13
0 votes
0 answers
49 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 ...
user46685's user avatar
1 vote
1 answer
1k 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 ...
SFDC_USER's user avatar
  • 124
0 votes
1 answer
13k 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 ...
Julien Souchi's user avatar
1 vote
1 answer
94 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="...
Michele Kleinhomer's user avatar
0 votes
1 answer
826 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 ...
Julien Souchi's user avatar
0 votes
1 answer
2k 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 ...
Batman's user avatar
  • 23
1 vote
1 answer
3k 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 ...
Ryan McNeely's user avatar
0 votes
1 answer
787 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 ...
Pavan tej's user avatar
  • 1,439
0 votes
2 answers
631 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"> ...
L Mudiyanse's user avatar
0 votes
1 answer
521 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: ...
VINOD's user avatar
  • 33
0 votes
0 answers
17 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={...
xSkrappy's user avatar
  • 163
1 vote
1 answer
427 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 ...
Rohan Kulkarni's user avatar
0 votes
1 answer
1k 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 ...
Rohan Kulkarni's user avatar
1 vote
1 answer
219 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 ...
Nathan Marchant's user avatar
0 votes
1 answer
625 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 ...
psalesforce1989's user avatar
0 votes
1 answer
299 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 ...
psalesforce1989's user avatar
1 vote
2 answers
176 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 ...
Berry Allen's user avatar
2 votes
1 answer
7k 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 ...
malu's user avatar
  • 141
3 votes
1 answer
1k 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 ...
womanwhodevs's user avatar
0 votes
1 answer
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 ...
gs650x's user avatar
  • 2,600
2 votes
2 answers
4k 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:...
Developer's user avatar
1 vote
2 answers
2k 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 ...
Suhasini's user avatar
  • 307
3 votes
1 answer
1k 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=...
Robs's user avatar
  • 9,187
0 votes
1 answer
151 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 ...
Jerry Welliver's user avatar
0 votes
1 answer
179 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 ...
Natalie Paige's user avatar
0 votes
0 answers
1k 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(...
Arnold Jr.'s user avatar
  • 1,491
3 votes
1 answer
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. ...
Arnold Jr.'s user avatar
  • 1,491
8 votes
1 answer
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"/> <...
Mossi's user avatar
  • 3,906
0 votes
2 answers
1k 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 ...
Anand's user avatar
  • 3
3 votes
2 answers
9k 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....
Nobita's user avatar
  • 153
0 votes
1 answer
2k 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 &...
Sam's user avatar
  • 238
0 votes
1 answer
63 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 ...
Elango's user avatar
  • 1
0 votes
1 answer
62 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:...
Mitch Spano's user avatar
  • 1,535