You need to sign in to do that
Don't have an account?
Nkosilathi Ncube
Visualforce Page override for one Record Type
On the Contact object I have two Record types "A" and "B", I have created a visualforce page which I want to use for record type A not for both I want to keep B default, please help
Thus, instead of making it go to the standard edit page ('/e'), we just use the record ID as the URL instead.
Hope that helps!
All Answers
In the controller:
Replace 'ContactRecordTypeA' with the actual name of your record type. Repalce Page.ContactRecordTypeA with the name of your Visualforce Page.
You'll need to override the New button on the Contact to use the above VF page. Make sure the 'Skip Record Type Selection Page' checkbox is NOT checked.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_customize_override.htm
Thus, instead of making it go to the standard edit page ('/e'), we just use the record ID as the URL instead.
Hope that helps!
An error has occurred while processing your request....