-
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
Managed Services: The Go-to Model for Salesforce Users
The global managed services market is anticipated to reach the $275 billion mark by 2026 with an 11 per cent CAGR - showing rising demand…
The Top 10 Marketing Cloud Hacks You Should Know
Even if you are an expert in the Salesforce Marketing Cloud, it never hurts to have a few tricks under your sleeve. You will continue…
Why ERP and CRM Are Critical for Business Continuity
In a world that’s seen pandemics, supply chain breakdowns, remote work revolutions, and global economic shifts – all in one decade – business continuity is…
Popular Salesforce Videos
An Introduction to Salesforce org Nonprofit Cloud
Did you know that over 30,000 nonprofit organizations use Salesforce? Salesforce.org’s premier product, NPSP, helps nonprofits drive greater impact by connecting everything they do. Learn…
Getting started with Salesforce integration patterns using MuleSoft
Learn how to develop different integration patterns between Salesforce and external systems. You can read the full tutorial, and download the project jar file by…
Salesforce Flow to Create Feedback form on Case | How to use Slider, Radio button on Screen Flow
Use Case: In this video, we are creating a screen flow to get feedback from the users when the case is closed. Learnings: 1. How…