+ Start a Discussion
anvesh@force.comanvesh@force.com 

Render is not working as expected in visual force page ?

KaranrajKaranraj
Can you share your code and more detail about the issue?
anvesh@force.comanvesh@force.com
I have created 2 visual force pages. I want to display these based on Record types. I have 18 digit record type id for this. But it showing 2 pages one after other every time of record type selcetion.

<apex:page standardController="Opportunity" >
<apex:outputPanel rendered="{!IF(Opportunity.RecordTypeId!='012400000009mCCAAY',true,false)}">
<apex:include pageName="OppVfPage" />
</apex:outputPanel>
<apex:outputPanel rendered="{!IF(Opportunity.RecordTypeId!='01240000000UWKDAA4',true,false)}">
<apex:include pageName="LostReason" />
</apex:outputPanel>
</apex:page>
Nilesh JayswalNilesh Jayswal
Hi Anvesh,

How many record types you have on Opportunity? Please replace != with == in apex:outputPanel rendered condition and try.