Tuesday 3 September 2013

How to override View page of SObject based on Record Type

Hi Folks,

Today I brought up very small and useful trick for overriding View page of s-object based on record type.

Lets say we have an Opportunity Object with record type 'JapanType' & 'USType' and we need to show 'JapanType' with standard layout while 'USType' with Custom Screen.

It is not possible by any customization in salesforce but we can achieve it with small script over the page: 

  

SO if even we have overridden view page of opportunity with VF page but if that record type is of 'JapanType' page gets it's standard layout.

No comments:

Post a Comment