-
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
The ABC's of Salesforce - All you Need to Know
When you’re new to Salesforce, it’s easy to get lost in the lingo. There’s just so much information to digest that it can be overwhelming…
Salesforce Year 2021 Highlights
As we come to a year-end, we cannot wrap up the year without acknowledging all the significant and game-changing work Salesforce has done in the…
Best Automation Testing Training in Electronic City, Bangalore
Looking for the Best Automation Testing Training in Electronic City, Bangalore to build a high-growth IT career? Join eMexo Technologies, the Top-Rated Automation Testing Training Institute in Electronic…
Popular Salesforce Videos
Solving the Fizz Buzz (AMPscript) in Salesforce Marketing Cloud
Cameron Robert from Datarati uses 2 different approaches to solve the Fizz Buzz programming challenge using AMPScript Salesforce Marketing Cloud. What you'll learn: » How…
Top 3 Interview Tips | How To Land A Salesforce Job
In this video, brad discusses the TOP 3 ways to nail your interview and land a job as a Salesforce Professional. These tips apply to…
Difference between Contacts and Subscribers in Salesforce Marketing Cloud
Cameron Robert from Datarati explains the difference between Contacts and Subscribers in Salesforce Marketing Cloud. What you'll learn: » The difference between a Contact and…