-
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
7 Best Enhancements Coming to Salesforce Field Users with Resco’s Winter Update ‘18
The air is getting colder and the countdown for the Holidays begins. That must mean one thing, it's the Winter Updates time! A decade ago,…
Why Should You Choose Salesforce Revenue Cloud & CPQ!
Streamline Your Lead to Cash Business Processes in a Single Unified Platform Salesforce Revenue Cloud Suite is part of the Salesforce Customer 360 platform. It is…
Mule Dreamin: Shaping MuleSoft+Salesforce Together for a Powerful Integration
In the world of enterprise integration, MuleSoft has emerged as a leader, enabling organizations to connect various systems and applications seamlessly. Salesforce, on the other…
Popular Salesforce Videos
Salesforce Lightning Development | Make Your Business Lightning-Ready With Algoworks!
Description - From creating Lightning-ready Salesforce AppExchange apps to making Salesforce instances Lightning-ready, we have mastered Lightning. Contact us for salesforce lightning development services! https://www.algoworks.com/salesforce/…
How Salesforce Supports Military Families
Join Rachel Dishman, Lead Solution Engineer at Salesforce, as she discusses the ways that Salesforce supports military families. By tuning in, you'll hear more about…
How Trailhead Military can Help You to Get a Job? | The Shrey Sharma Show | Salesforce
Shrey is a Chief Executive Officer at Cyntexa, a SILVER Salesforce Consulting Partner in the USA, UK, UAE, Australia, Singapore & India, having a vibrant…