-
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
Navigating Salesforce Test Automation: A Comprehensive Guide for Engineers
Organizations increasingly rely on advanced tools to keep pace with frequent releases in the rapidly evolving software development world. This blog provides engineers, testers, product…
Salesforce Sales Cloud Innovations – Your Key to Higher Revenue
Sales have gone through a tremendous evolution over the years, starting from door-to-door to using advanced technologies. And now they’ve stepped into a hybrid age…
How does the Salesforce IoT Cloud system build End-to-End Customer Experience?
An effective Salesforce development company provide specialized enterprise app development and maintenance and of course offers implementation and customization services. When looking for Salesforce vendors,…
Popular Salesforce Videos
Build a Discount Approval Process | Step by Step Guide | Trailhead Project
Building a robust discount approval process is the first step in getting a grip of price discounts that are eating into profit. In this video…
5 Mind-Blowing New Salesforce Marketing Cloud Releases
The Statist worldwide marking survey reports- “Almost 4 billion world population is digitally active, and 2.14 of them are shopping online.” In this entire scenario,…
How to Configure and Customize Salesforce Lightning
A Salesforce expert will guide you through all of the configuration, customization, and personalization options available so you can get the most out of Lightning…