-
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 Marketing Cloud for Healthcare's Personalized Revolution
In today's competitive landscape, engaging patients and driving outcomes is vital. But legacy systems and siloed data often stand as formidable barriers. Enter Salesforce Marketing…

Useful Salesforce Steps and Instructions
Hello All, Today I am going to provide you a very useful and important set of items that you should always keep handy with you…

Salesforce Org Control Access: Who can access and What to access
Salesforce gives an adaptable, layered information-sharing structure that permits you to uncover various informational indexes to various arrangements of clients, so clients can carry out…
Popular Salesforce Videos
Introduction to Salesforce Nonprofit Cloud for Program Management
Each nonprofit’s mission and the program is unique, but with Salesforce’s highly configurable and customizable platform, you can manage your entire program from one central…
Build Your First Custom App On Salesforce
Lightning App Builder makes it super simple to quickly assemble apps using just declarative drag and drop features. This video covers how to upgrade a…
Automate Workflows and Process Intelligence with Nintex Development Services | Salesforce
Nintex is a leading process improvement, workflow, and automation software platform. In their own words, you can use the Nintex platform to manage, automate, and…