1

I have 2 different record types for the Contact object and I would want to display a different layout for each of them.

I was wondering if there is an already integrated option to do so or do I have to construct a custom visualforce page for both of them?

2
  • I am confused. Do you want to use visualforce? or are you asking if there is a way to do it via the point and click page layouts, or if you would have to make two vf pages?
    – cmmoutes13
    Commented Sep 2, 2016 at 12:36
  • As my question states I am asking if there is already a way to do it without having to build extra visualforce pages Commented Sep 2, 2016 at 13:06

2 Answers 2

2

Yes, this is standard Salesforce functionality. You will want to create your multiple page layouts and then when you go to create your multiple record types you will be able to assign which record types use which layouts. I have added a few links for you to view that should help you get this set up.

Salesforce Record Types and Page Layouts

Assigning Page Layouts

2
  • thanks @cmmoutes13 that's exactly what I was looking for Commented Sep 2, 2016 at 13:34
  • No Problem @MarcZaharescu
    – cmmoutes13
    Commented Sep 2, 2016 at 14:22
0

apex:detail The standard detail page for a particular object, as defined by the associated page layout for the object in Setup. This component includes attributes for including or excluding the associated related lists, related list hover links, and title bar that appear in the standard Salesforce application interface

Doesn't this do the trick?

FYI: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_detail.htm

2
  • thank you for your answer. Unfortunately the link doesn't seem to be working. Also I think you didn't understand my question. I am asking whether or not there already exists a way in salesforce to display custom information based on the record type without having to build any extra visual force pages? Commented Sep 2, 2016 at 13:09
  • works for me :-/
    – Nielsm
    Commented Sep 2, 2016 at 13:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .