I have below render condition on below snippet that makes output field show on apex page when a particular checkbox is true for a list record. It is not working when that checkbox is checked from a command button, but works fine when I use input field for that checkbox.
Apex page code:
<apex:column headervalue="Coach">
<apex:actionRegion >
<apex:actionStatus id="SaveStatus_HCP_Detail">
<apex:facet name="start" >
<apex:outputText value="Saving...!" />
</apex:facet>
<apex:facet name="stop" >
<apex:image url="/img/msg_icons/confirm16.png" title="Saved Successfully" rendered="{!itr.Id == targetId}" />
</apex:facet>
</apex:actionstatus>
<apex:inputField value="{!itr.Confirm_Attestation_abv__c}" onchange="jsCoachSave('{!itr.Id}','{!itr.Confirm_Attestation_abv__c}');" />
<apex:inputField label="Transaction Type" value="{!itr.Recordtype.name}" style="display:none;"/>
</apex:actionRegion>
<apex:commandButton value="Coach" onclick="jsCoachSave('{!itr.Id}','{!itr.Confirm_Attestation_abv__c}');" action="{!reset}" />
</apex:column>
Clicking on Coach command button not hiding the below Outcome input field.
<apex:column headerValue="Outcome" >
<apex:actionRegion >
<apex:actionStatus id="SaveStatus">
<apex:facet name="start" >
<apex:outputText value="Saving...!" />
</apex:facet>
<apex:facet name="stop" >
<apex:image url="/img/msg_icons/confirm16.png" title="Saved Successfully" rendered="{!itr.Id == targetId}" />
</apex:facet>
</apex:actionstatus>
<apex:inputField value="{!itr.Outcome_abv__c}" onchange="jsCallSave('{!itr.Id}','{!itr.Recordtype.name}','{!itr.Confirm_Attestation_abv__c }');" rendered="{!itr.Confirm_Attestation_abv__c == false || checkbutton==false}">
</apex:inputField>
<apex:inputField label="Transaction Type" value="{!itr.Recordtype.name}" style="display:none;"/>
</apex:actionRegion>
<apex:outputField value="{!itr.Outcome_abv__c}" rendered="{!itr.Confirm_Attestation_abv__c == true || checkbutton==true}"/>
</apex:column>
Please note I have checked 'checkbutton' bollean value to true when Coach method is called. Can someone please let me know the issue?