-
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
Simplifying Salesforce CPQ Migration: A Spotlight on iSyncSF
In the dynamic landscape of modern business, the seamless transition of critical systems like Salesforce CPQ (Configure, Price, Quote) between different Salesforce orgs is paramount.…
How Does Salesforce Marketing Cloud Help in Building Customer Relationship for Life?
Salesforce Marketing Cloud: A Game-Changer for Marketers Salesforce Marketing Cloud (SFMC) is one of the top-rated automation tools in the industry, known for being packed…
The Simple Formula for Success in Improving Your Business With Marketing Automation | Salesforce
In today's day and age, every business requires a very strong marketing system. Marketing automation is a technology that helps marketers to run their marketing…
Popular Salesforce Videos
The Only Salesforce Developer Video Tutorial Course You Will Ever Need!
A Salesforce developer is a programmer who builds Salesforce applications across various PaaS (Platform as a Service) platforms. A Salesforce developer has an understanding of…
Break up Salesforce Record Detail into Tabs | Salesforce Lightning Page Layouts
In this video, Signiforce briefs about how to create an Action with a subset of fields from your object and then add this action to…
What is Lightning Unsaved Changes ? | How and Where to Use it in Salesforce?
In this video, you will learn what is Lightning Unsaved Change and how you can use it in your Lightning Components. I will create a…