+ Start a Discussion
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.

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>
N.V.V.L.Vinay KumarN.V.V.L.Vinay Kumar
Hi Anvesh,

try this

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

Regards,
N. Vinay.