function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Thomas D.Thomas D. 

inputfield value not being updated to controller

I'm using a visualforce page and a custom controller to save some inputfields from inputfields in a repeater.. however the new inserted values are not being updated.

when i edit the inputcheck or inputfield and then press the command button to call my apex controller method. it doesn't pass the newly entered values and just updates again with the old values.

In case i didn't give enough code detail i can give more.

<apex:page controller="customController" >
        <apex:actionFunction action="{!closepopup}" name="closepopup" reRender="popup" oncomplete="restorescroll()">
    <apex:outputPanel id="popup">
        <apex:outputPanel id="outerpopup" styleClass="popupBackground" layout="block" rendered="{!displayPopUp}" onclick="closepopup()"/>
        <apex:outputPanel id="innerpopup" styleClass="custPopup" layout="block" rendered="{!displayPopUp}">
            <div class="popupoverflow">
                <div class="popupcontent">
                    <apex:form >
                        <apex:repeat value="{!relatedworks}" var="rw">
                            <apex:inputCheckbox value="{!rw.Completed__c}"/>
                            <apex:inputField value="{!}">
                        <apex:commandButton value="Hide Pop up" id="closebutton" action="{!closePopup}" rerender="popup"/>
                    <chatter:follow entityId="{!cardId}"/>
                    <chatter:feed entityId="{!cardId}"/>

public list<VG_FR_Work__c> relatedworks {get;set;}
public string CardId {get;set;}
public boolean displayPopup {get; set;}

public void closePopup() {
        update relatedworks;
        displayPopup = false;

public void showPopup() {
        fullcard = [SELECT Id,Name,status__c,Long_description__c FROM VG_FeatureRequest__c WHERE Id =: cardId];
        relatedworks = [SELECT Id,Name,completed__c FROM VG_FR_Work__c WHERE VG_FeatureRequest__c =: cardId ];
        displayPopup = true;    

Thomas D.Thomas D.
Edit: the onclick on the outputpanel doesn't save the newly entered values.