[SalesForce] To Record Type or Not to Record Type

Here's my issue:

We have a customer object that we sell. we call it "License".

There are 2 types of these licenses: Network and Single.

Each of these, have it's own record type today. (that's 2 record types)

Now, Sales want to apply another mechanism (which the hardware license supports) – calling it: Timer and Perpetual License.

So in Theory, we can have: 4 type of keys, 2 of each (Timer Regular, Perpetual Regular, Timer Network, Perpetual Network) – but only with 2 types of physical hardware licenses.

The issue that sales want to prevent, is that when a customer, views his Licenses data on the site (we use portals), they will NOT see the word: Timer.

My question (and it's a general – not to make it too specific to my case)

  • How can I change the page layout of an object, without creating a new Record Type?
  • How to display a different page layout, according to a field value (Check box in my issue) for the same object, with the same record type

Best Answer

The record type drives the page layout. If you want to just have two record types, you cannot separate the layouts using the standard UI.

The alternative is a Visualforce page; this means you'd have to code four layouts, and use controller logic to determine how it should appear.

Personally, I'd go with the four record types. You could use a workflow rule to choose a record type in order to avoid the "label" of the record type giving too much information to the client.

Alternatively, you could hide the record type field entirely, and use a formula to display the record type to hide the distinction from your clients.

Related Topic