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.
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>
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.