-
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

Salesforce® Summer’17 To Raise The Temperature This Season!
Anticipation and excitement start as soon as news of Salesforce update hits the market. Salesforce® is known for an average release of 200 plus features…

Knowledge of Salesforce Flow and Different Type of Flows and Its Elements
What are Flows? In Salesforce, a flow is an application that automates complex business processes. Simply put, it collects data and then does something with…

Benefits of Integrating Salesforce and Jira - Minimize Hidden Costs Incurred by the Lack of Collaboration
Do you feel like your productivity or your team is getting affected due to a lack of collaboration with another team? If that’s the case,…
Popular Salesforce Videos
Learn DML Statements in Salesforce Development
In this video, We'll be learning about DML (Data Manipulation Language) in Salesforce development: We will be discussing the following things in this video: 1.…
Salesforce Object Query Language (SOQL) Crash Course | The Complete Hands-on Tutorials
SOQL in Salesforce is used to retrieve data from the Salesforce database for specific information. This video covers everything you need to know as a…
Famous Brands With Their Applications Listed On Salesforce AppExchange
Selling your app on AppExchange can dramatically increase your business revenue. Various renowned brands have already harnessed the potential of this marketplace to broaden their…