{"id":258320,"date":"2024-05-30T13:18:27","date_gmt":"2024-05-30T13:18:27","guid":{"rendered":"https:\/\/namso-gen.co\/blog\/?p=258320"},"modified":"2024-05-30T13:18:27","modified_gmt":"2024-05-30T13:18:27","slug":"how-to-get-selected-radio-button-value-in-salesforce-lightning","status":"publish","type":"post","link":"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/","title":{"rendered":"How to get selected radio button value in Salesforce Lightning?"},"content":{"rendered":"<p>**How to get selected radio button value in Salesforce Lightning?**<\/p>\n<p>Salesforce Lightning provides an intuitive and user-friendly interface for creating modern and efficient web applications. When working with radio buttons in Salesforce Lightning, retrieving the selected value can be achieved through a straightforward process. In this article, we will explore how to accomplish this task and provide answers to common FAQs surrounding this topic.<\/p>\n<p>To get the selected radio button value in Salesforce Lightning, you will need to follow these steps:<\/p>\n<p>1. **Add Radio Buttons to Your Component:** Begin by adding radio buttons to your Salesforce Lightning component using the appropriate syntax and attributes. For example, you can create a radio group by utilizing the `<lightning-radio-group>` component and defining the individual options within it.<\/p>\n<p>2. **Bind the Selected Value:** In order to retrieve the selected radio button value, you need to bind it to a property in your component&#8217;s JavaScript controller. This can be done by specifying the `value` attribute of the `<lightning-radio-group>` component and assigning it to a variable in your controller.<\/p>\n<p>3. **Retrieve the Selected Value:** Now that the value is bound to a property, you can easily access it from the controller to perform the desired actions. To retrieve the selected value, you can reference the variable holding the binding in your controller&#8217;s functions.<\/p>\n<p>4. **Example Code:** Let&#8217;s illustrate the process with an example. First, create a radio group in your component&#8217;s markup:<\/p>\n<p>&#8220;`html\n<lightning-radio-group name=\"radioGroup\" label=\"Select an Option\" options={options} value={selectedValue} onchange={handleChange}><\/lightning-radio-group>\n&#8220;`<\/p>\n<p>5. **Create a Binding Variable:** In your component&#8217;s JavaScript controller, define the binding variable and initialize it:<\/p>\n<p>&#8220;`javascript<br \/>\n@track selectedValue = &#8221;;<br \/>\n&#8220;`<\/p>\n<p>6. **Implement the Change Handler:** To handle changes in the selected radio button value, include a function in your controller to capture the updated value:<\/p>\n<p>&#8220;`javascript<br \/>\nhandleChange(event) {<br \/>\n   this.selectedValue = event.target.value;<br \/>\n   \/\/ Additional logic or actions can be performed here<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>7. **Retrieve the Selected Value:** Now, you can access the selected value in your controller using `this.selectedValue`. You can use this value to fulfill your requirements, such as displaying it on the screen or performing other operations.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#FAQs\" title=\"FAQs\">FAQs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#1_Can_I_bind_radio_buttons_to_a_Boolean_field_in_Salesforce_Lightning\" title=\"1. Can I bind radio buttons to a Boolean field in Salesforce Lightning?\">1. Can I bind radio buttons to a Boolean field in Salesforce Lightning?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#2_How_do_I_set_a_default_selected_value_for_radio_buttons\" title=\"2. How do I set a default selected value for radio buttons?\">2. How do I set a default selected value for radio buttons?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#3_Can_I_dynamically_generate_radio_button_options_in_Salesforce_Lightning\" title=\"3. Can I dynamically generate radio button options in Salesforce Lightning?\">3. Can I dynamically generate radio button options in Salesforce Lightning?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#4_Is_it_possible_to_change_the_appearance_of_radio_buttons_in_Salesforce_Lightning\" title=\"4. Is it possible to change the appearance of radio buttons in Salesforce Lightning?\">4. Is it possible to change the appearance of radio buttons in Salesforce Lightning?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#5_How_can_I_validate_the_selection_of_a_radio_button_in_Salesforce_Lightning\" title=\"5. How can I validate the selection of a radio button in Salesforce Lightning?\">5. How can I validate the selection of a radio button in Salesforce Lightning?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#6_Can_I_nest_radio_buttons_within_other_components_in_Salesforce_Lightning\" title=\"6. Can I nest radio buttons within other components in Salesforce Lightning?\">6. Can I nest radio buttons within other components in Salesforce Lightning?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#7_Are_radio_buttons_a_suitable_choice_for_selecting_multiple_options\" title=\"7. Are radio buttons a suitable choice for selecting multiple options?\">7. Are radio buttons a suitable choice for selecting multiple options?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#8_How_can_I_display_radio_buttons_horizontally_in_Salesforce_Lightning\" title=\"8. How can I display radio buttons horizontally in Salesforce Lightning?\">8. How can I display radio buttons horizontally in Salesforce Lightning?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#9_Can_I_disable_or_make_radio_buttons_read-only_in_Salesforce_Lightning\" title=\"9. Can I disable or make radio buttons read-only in Salesforce Lightning?\">9. Can I disable or make radio buttons read-only in Salesforce Lightning?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#10_Is_it_possible_to_change_the_order_of_radio_button_options_dynamically\" title=\"10. Is it possible to change the order of radio button options dynamically?\">10. Is it possible to change the order of radio button options dynamically?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#11_How_can_I_perform_different_actions_based_on_the_selected_radio_button_value\" title=\"11. How can I perform different actions based on the selected radio button value?\">11. How can I perform different actions based on the selected radio button value?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#12_Can_I_use_radio_buttons_in_both_Salesforce_Lightning_Aura_and_Lightning_Web_Components\" title=\"12. Can I use radio buttons in both Salesforce Lightning Aura and Lightning Web Components?\">12. Can I use radio buttons in both Salesforce Lightning Aura and Lightning Web Components?<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"FAQs\"><\/span>FAQs<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h3><span class=\"ez-toc-section\" id=\"1_Can_I_bind_radio_buttons_to_a_Boolean_field_in_Salesforce_Lightning\"><\/span>1. Can I bind radio buttons to a Boolean field in Salesforce Lightning?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can bind radio buttons to a Boolean field in Salesforce Lightning by assigning the `value` attribute of each radio button to a Boolean value.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_How_do_I_set_a_default_selected_value_for_radio_buttons\"><\/span>2. How do I set a default selected value for radio buttons?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nTo set a default selected value for radio buttons, initialize the binding variable in your controller to the desired default value. For example, `@track selectedValue = &#8216;Default&#8217;;`.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_Can_I_dynamically_generate_radio_button_options_in_Salesforce_Lightning\"><\/span>3. Can I dynamically generate radio button options in Salesforce Lightning?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can dynamically generate radio button options by populating the `options` attribute of the `<lightning-radio-group>` component with an array of objects containing the `label` and `value` properties.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_Is_it_possible_to_change_the_appearance_of_radio_buttons_in_Salesforce_Lightning\"><\/span>4. Is it possible to change the appearance of radio buttons in Salesforce Lightning?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can customize the appearance of radio buttons in Salesforce Lightning by applying CSS styles to the corresponding classes or by creating custom radio button components.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_How_can_I_validate_the_selection_of_a_radio_button_in_Salesforce_Lightning\"><\/span>5. How can I validate the selection of a radio button in Salesforce Lightning?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nTo validate the selection of a radio button, you can use conditional statements in your controller to ensure that a value is chosen before proceeding with certain actions. You can display an error message or prevent further execution until a selection is made.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_Can_I_nest_radio_buttons_within_other_components_in_Salesforce_Lightning\"><\/span>6. Can I nest radio buttons within other components in Salesforce Lightning?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can nest radio buttons within other components in Salesforce Lightning, such as `<lightning-card>` or `<lightning-layout>`, using the appropriate structure in your component&#8217;s markup.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_Are_radio_buttons_a_suitable_choice_for_selecting_multiple_options\"><\/span>7. Are radio buttons a suitable choice for selecting multiple options?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nNo, radio buttons are used to allow a single selection from a list of mutually exclusive options. If you need to select multiple options, consider using checkboxes instead.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"8_How_can_I_display_radio_buttons_horizontally_in_Salesforce_Lightning\"><\/span>8. How can I display radio buttons horizontally in Salesforce Lightning?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nTo display radio buttons horizontally, you can utilize CSS or Lightning Design System classes to align them in a row. For instance, you can use the `slds-grid` class combined with appropriate column classes for each radio button.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"9_Can_I_disable_or_make_radio_buttons_read-only_in_Salesforce_Lightning\"><\/span>9. Can I disable or make radio buttons read-only in Salesforce Lightning?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can disable or make radio buttons read-only by setting the `disabled` attribute to `true` or binding it to a Boolean variable indicating the disabled state.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"10_Is_it_possible_to_change_the_order_of_radio_button_options_dynamically\"><\/span>10. Is it possible to change the order of radio button options dynamically?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can dynamically change the order of radio button options by modifying the array of options bound to the `options` attribute of the `<lightning-radio-group>` component.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"11_How_can_I_perform_different_actions_based_on_the_selected_radio_button_value\"><\/span>11. How can I perform different actions based on the selected radio button value?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nWithin the change handler function, you can use conditional statements or switch cases based on the selected value to trigger different actions or display different content in your Salesforce Lightning component.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"12_Can_I_use_radio_buttons_in_both_Salesforce_Lightning_Aura_and_Lightning_Web_Components\"><\/span>12. Can I use radio buttons in both Salesforce Lightning Aura and Lightning Web Components?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, radio buttons can be used in both Salesforce Lightning Aura components and Lightning Web Components, following the syntax and binding techniques specific to each framework.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>**How to get selected radio button value in Salesforce Lightning?** Salesforce Lightning provides an intuitive and user-friendly interface for creating modern and efficient web applications. When working with radio buttons in Salesforce Lightning, retrieving the selected value can be achieved through a straightforward process. In this article, we will explore how to accomplish this task &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to get selected radio button value in Salesforce Lightning?\" class=\"read-more button\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#more-258320\">Read more<span class=\"screen-reader-text\">How to get selected radio button value in Salesforce Lightning?<\/span><\/a><\/p>\n","protected":false},"author":65,"featured_media":107420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86279],"tags":[],"class_list":["post-258320","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to get selected radio button value in Salesforce Lightning?<\/title>\n<meta name=\"description\" content=\"**How to get selected radio button value in Salesforce Lightning?** Salesforce Lightning provides an intuitive and user-friendly interface for creating\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to get selected radio button value in Salesforce Lightning?\" \/>\n<meta property=\"og:description\" content=\"**How to get selected radio button value in Salesforce Lightning?** Salesforce Lightning provides an intuitive and user-friendly interface for creating\" \/>\n<meta property=\"og:url\" content=\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/\" \/>\n<meta property=\"og:site_name\" content=\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/synchronyfinancial\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-30T13:18:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Timothy Mathis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@synchrony\" \/>\n<meta name=\"twitter:site\" content=\"@synchrony\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Timothy Mathis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/\"},\"author\":{\"name\":\"Timothy Mathis\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/ffa5be155490b2344e28f672fcc1e318\"},\"headline\":\"How to get selected radio button value in Salesforce Lightning?\",\"datePublished\":\"2024-05-30T13:18:27+00:00\",\"dateModified\":\"2024-05-30T13:18:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/\"},\"wordCount\":825,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"articleSection\":[\"Learn\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/\",\"name\":\"How to get selected radio button value in Salesforce Lightning?\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\"},\"datePublished\":\"2024-05-30T13:18:27+00:00\",\"dateModified\":\"2024-05-30T13:18:27+00:00\",\"description\":\"**How to get selected radio button value in Salesforce Lightning?** Salesforce Lightning provides an intuitive and user-friendly interface for creating\",\"breadcrumb\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/namso-gen.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to get selected radio button value in Salesforce Lightning?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"description\":\"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co\",\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/namso-gen.co\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"contentUrl\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"width\":500,\"height\":164,\"caption\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\"},\"image\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/synchronyfinancial\",\"https:\/\/twitter.com\/synchrony\",\"https:\/\/www.youtube.com\/synchronyfinancial\",\"https:\/\/www.instagram.com\/synchrony\",\"https:\/\/www.linkedin.com\/company\/synchrony-financial\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/ffa5be155490b2344e28f672fcc1e318\",\"name\":\"Timothy Mathis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Timothy Mathis\"},\"description\":\"Guest author Timothy Mathis has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to get selected radio button value in Salesforce Lightning?","description":"**How to get selected radio button value in Salesforce Lightning?** Salesforce Lightning provides an intuitive and user-friendly interface for creating","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/","og_locale":"en_US","og_type":"article","og_title":"How to get selected radio button value in Salesforce Lightning?","og_description":"**How to get selected radio button value in Salesforce Lightning?** Salesforce Lightning provides an intuitive and user-friendly interface for creating","og_url":"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/","og_site_name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","article_publisher":"https:\/\/www.facebook.com\/synchronyfinancial","article_published_time":"2024-05-30T13:18:27+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png","type":"image\/png"}],"author":"Timothy Mathis","twitter_card":"summary_large_image","twitter_creator":"@synchrony","twitter_site":"@synchrony","twitter_misc":{"Written by":"Timothy Mathis","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#article","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/"},"author":{"name":"Timothy Mathis","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/ffa5be155490b2344e28f672fcc1e318"},"headline":"How to get selected radio button value in Salesforce Lightning?","datePublished":"2024-05-30T13:18:27+00:00","dateModified":"2024-05-30T13:18:27+00:00","mainEntityOfPage":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/"},"wordCount":825,"commentCount":0,"publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"articleSection":["Learn"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/","url":"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/","name":"How to get selected radio button value in Salesforce Lightning?","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/#website"},"datePublished":"2024-05-30T13:18:27+00:00","dateModified":"2024-05-30T13:18:27+00:00","description":"**How to get selected radio button value in Salesforce Lightning?** Salesforce Lightning provides an intuitive and user-friendly interface for creating","breadcrumb":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-selected-radio-button-value-in-salesforce-lightning\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/namso-gen.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How to get selected radio button value in Salesforce Lightning?"}]},{"@type":"WebSite","@id":"https:\/\/namso-gen.co\/blog\/#website","url":"https:\/\/namso-gen.co\/blog\/","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","description":"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co","publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/namso-gen.co\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/namso-gen.co\/blog\/#organization","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","url":"https:\/\/namso-gen.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","contentUrl":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","width":500,"height":164,"caption":"Namso Gen Blog - Free Credit Card Generator [100% Valid]"},"image":{"@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/synchronyfinancial","https:\/\/twitter.com\/synchrony","https:\/\/www.youtube.com\/synchronyfinancial","https:\/\/www.instagram.com\/synchrony","https:\/\/www.linkedin.com\/company\/synchrony-financial"]},{"@type":"Person","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/ffa5be155490b2344e28f672fcc1e318","name":"Timothy Mathis","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Timothy Mathis"},"description":"Guest author Timothy Mathis has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here."}]}},"_links":{"self":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/258320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/comments?post=258320"}],"version-history":[{"count":0,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/258320\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media\/107420"}],"wp:attachment":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media?parent=258320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/categories?post=258320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/tags?post=258320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}