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
willingwilling 

Record Type Selction using APEX Code

Hi
 
I have a lot of record types on a custom object and displaying all those  while creating a New Record looks not very attractive.
 
 I want to over-write code for New button where I can display some record types and depending upon which the user picks display another smaller list of record types and then based on what is the final selection open up the page layout for that record type to enter information.
 
I would really appreciate if anyone who has done anything similar or has some idea how to do it can guide me .
 
 
Thanks for the help
werewolfwerewolf
Why don't you just set up the Profiles such that only the relevant record types are visible to users of that Profile?  That would be much easier.