function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Developer99Developer99 

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
Atul111Atul111
record type is for you standpage. If you have custom vf page then you can directly implement diffrenet page layout as per you requirmrnt. U should not need to implement recodtype concept in your page.

If you have any specific requirment please let me know
Developer99Developer99
@atul

           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.
PeaceMakerPeaceMaker
@Developer99

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