-
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
Salesforce Macros Implementation | Automating your activities for active time management
Imagine sending a report once. Done? That was easy! How about doing it again and again and again. In a word, that’s boring! This rabbit hole travels…
12 Salesforce Deployment Challenges to Overcome Today
The following is a summary of the information covered in the Flexagon webinar: 12 Salesforce Deployment Challenges to Overcome Today. 12 Salesforce Deployment Challenges Lack…
What is Field level security in SQL? | The Ultimate Guide
What is Field Level Security in SQL? Field level security in SQL is a feature that allows administrators to control access to specific fields in…
Popular Salesforce Videos
Get Started with Salesforce Commerce Cloud Einstein Product Recommendations
Personalize the shopping experience for your customers with Commerce Cloud Einstein Product Recommendations. Drive conversions, enhance product visibility and increase revenue per visit with AI-driven…
Marketing for Nonprofits Customer 360 Demo | Salesforce Video
Growing your nonprofit requires building relationships with lifelong supporters. Marketing Cloud for Nonprofits is a purpose-built marketing solution designed to help smaller nonprofits quickly and…
Salesforce Standard vs Custom Objects Explained
Salesforce, a leading customer relationship management (CRM) platform, offers both custom and standard objects to organize and manage data effectively. Standard objects are pre-built components…