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
John DaJohn Da 

Override recordtype selection standard page layout with VF Page

Hi,

So I have object A with 2 record types. Whenever I click on "New" button (from related list), it goes to the standard page layout with the recordtype option for me to choose. Then depending on which recordtype I choose, it will go to the correct page layout for that recordtype. for editing. Now I want to override that standard page for record type selection with a VisualForce page. I will have 2 buttons on that page, each for 1 record type. Whichever button I click on, it is supposed to go to the correct page layout for editing. How can I achieve this? 
KaranrajKaranraj
Just mention the RecordType = 'Id of the record type' and nooverride=1 which will do that trick, check the following url for sample
/001/e?RecordType={!recordtypeid}&nooverride=1'