-
How to use apex:actionsupport such that it only saves the last radiobutton in repeat in Salesforce?
I build a radiobutton within a repeat of a list and then use actionsupport with event set to "onchange".
Example,
<apex:outputPanel id="repeating">
<apex:repeat value="{!change}" var="c">
<apex:selectRadio value="{!save}">
<apex:selectOption itemValue="{!c}" itemLabel="{!c}" />
</apex:selectRadio>
</apex:repeat>
<apex:actionSupport event="onchange" reRender="repeating" action="{!saveInformation}">
</outputPanel>However, this code only work on the final/last button. What I wanted it to do is to be able to save more than 1 button and any button that is changed. My current code only work on example;
button 1 *when pressed, nothing happen*
button 2 *when pressed, nothing happen*
button 3 *when pressed, this button can be saved*I wish it to be able to save any pressed buttons and also able to take more than 1 buttons to save.
Is there a way to alter my code or should I make any changes?
Log In to reply.
Popular Salesforce Blogs

Integrate Salesforce with MuleSoft
In this blog we are focusing on Salesforce integration with MuleSoft. Firstly, we will need a Salesforce developer account by clicking on the following link:…

How Cloud CRM Helps Automate Business Processes?
CRM software is the backbone of customer experience operations for most businesses today. In fact, the global market for CRM solutions is growing at a…

Steps To Navigate Within Salesforce Lightning Components
Hi! As we know there is a tag force:navigateToComponent use to navigate within the Salesforce Lightning component. So here we will use this tag to…
Popular Salesforce Videos
Top 3 Interview Tips | How To Land A Salesforce Job
In this video, brad discusses the TOP 3 ways to nail your interview and land a job as a Salesforce Professional. These tips apply to…
How to Become a Salesforce Developer? No Programming Experience Needed
Salesforce Developer has once again been named one of the world's best jobs. In a list of 25 job roles, Salesforce was the only company…
Salesforce Winter 18 Release for Busy Admins
Contents: Lightning Report Builder Dashboard Report Filter Lightning Hover Components Conditional Page Components Setup Search in Lightning Lead Conversion Updates User Interface Settings