Show Object Record Type

In this article Sam presents us a Visualforce Component that would list the record types of an Object in the platform.

Now following are words from Sam …
Imagine, the Account object has two record types in the platform (Record Types are created by the users based on what these objects represent on their business).

Account Record types:

  • Customer
  • Partner
In many occasions especially when developing a new wizard you need to first allow the user select what type of record they want to create and then based on that show the correct type of interface to the user.

The solution as to how you can show this to the user is rather simple, but here I actually took the time to create a re-usable component, so you and I won’t need to rewrite the code next time!

View Component and Component’s Controller Code @