+ Start a Discussion

Render is not working as expected in visual force page ?

Can you share your code and more detail about the issue?
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 rendered="{!IF(Opportunity.RecordTypeId!='01240000000UWKDAA4',true,false)}">
<apex:include pageName="LostReason" />
Nilesh JayswalNilesh Jayswal
Hi Anvesh,

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