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
dhanamjaya damaragunta 24dhanamjaya damaragunta 24 

Rerender with IF condition

Hi Team,
I have below code.if my customer priority is High i need to Rerender msg id and otherwise i need to reRender "recid" but always its going to else part of the if condition.
<apex:page standardController="Account" extensions="ConfirmationController" showHeader="false" sidebar="false" cache="false"  docType="HTML-5.0">
    <script>
        function submitOrder() {
                      savePartsOrder();  
                    }
    </script>
    <apex:form >
         <apex:actionFunction action="{!saveRecords}" name="savePartsOrder" reRender="{!IF(acc.CustomerPriority__c == 'High','msg','recid')}"/>
        <apex:inputfield value="{!acc.CustomerPriority__c}" onchange="submitOrder();" ></apex:inputfield>
        <apex:outputText value="{!currentConfirmation}" id="msg" /><br/><br/><br/>
        </apex:outputText>
      <apex:outputText value="{!orderReqId}" id="recid" />
        <br/><br/>
</apex:outputText>
    
    </apex:form>
    
</apex:page>
Raj VakatiRaj Vakati
Try this 

reRender="{!IF(acc.CustomerPriority__c ='High','msg','recid' )}"
dhanamjaya damaragunta 24dhanamjaya damaragunta 24
Hi Raj,

Thanks for your reply.I tried this but no luck its not working