-
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
All You Need to Know About Salesforce Net Zero Marketplace
You may have heard of the Salesforce Net Zero Marketplace and be wondering how it fits into the Salesforce world and Net Zero Cloud. Here…
Managing Billing Processes in Salesforce: Subscription Management and CPQ (Configure-Price-Quote)
In today's business landscape, retaining customers is the top priority for those who want to ensure scalability and predictable business growth. To achieve this, customers…
Use Salesforce Communities like Never Before | Salesforce Community Cloud
In today's business landscape, maintaining strong customer relationships is crucial yet challenging. Traditional methods often struggle to keep customers updated while maintaining confidentiality. Salesforce Community…
Popular Salesforce Videos
Provide Stellar CX With Grazitti | Be Salesforce Ready
Brands, nowadays, need to build powerful customer relationships and provide experiences that meet and exceed expectations. With evolving technologies, customers hate to stay in queues…
Salesforce Sales Cloud Training | Sales Cloud In Salesforce | Salesforce Tutorial
This Salesforce Sales Cloud Tutorial will help you understand what is leads home page, how to create contacts, how to create products and all creating…
Launch of Virtual Sales Tools | Salesforce 360: New Features
Salesforce has announced new Sales Cloud and supporting features to make virtual sales experiences more engaging and productive. In a nutshell, Salesforce is releasing 4…