You need to sign in to do that
Don't have an account?

Record Types
HI,
i want to implement the record types concept for my visaulforce pages, may i know how can i implement the record types for custom visualforce pages
i want to implement the record types concept for my visaulforce pages, may i know how can i implement the record types for custom visualforce pages
If you have any specific requirment please let me know
I have one custom object ,when i click on that custom tab i want to re-direct the different vf pages based upon the different picklist.
Create a new VF Page and override the new button.
<apex:page standardController="XYZ__c">
<script>
var vfpage ='';
var strrecordid = '{!XYZ__c.id}';
if(XYZ__c.Status__c.toLowerCase() == ("IT Team").toLowerCase()){
vfpage="VFPAGE1";
}else if(XYZ__c.Status__c.toLowerCase() == ("R&D Manager").toLowerCase()){
vfpage="VFPAGE2";
}else if(XYZ__c.Status__c.toLowerCase() == ("Admin Team").toLowerCase()){
vfpage="VFPAGE3";
}
else{
vfpage="VFPAGE4";
}
window.top.location.href = '/apex'+vfpage+'?id='+strrecordid;
</script>
</apex:page>
May be with some minor syntax error , not sure..
See if this helps you , Mark as Solution if it works for you..