You need to sign in to do that
Don't have an account?
dhanamjaya 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>
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>
reRender="{!IF(acc.CustomerPriority__c ='High','msg','recid' )}"
Thanks for your reply.I tried this but no luck its not working