function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jcaldjcald 

different record type different page layout?

I'm trying to create a different case page layout for different record types in the service console.

For example:

I have one record type that has multiple job types. I'd like to see a picklist for job types on the page layout but not for the other record types.

This doesn't work.

<apex:inputfield value="{!IF(Case.RecordType=='IT Services','Case.Job_Type__c','null')}"/>


Can anyone help? or let me know if this is possible?

Best Answer chosen by Admin (Salesforce Developers) 
Sure@DreamSure@Dream

Use rendered attribute

<apex:inputfield value="{!Case.Job_Type__c}" rendered="{!Case.RecordType.Name=='IT Services'}"/>

All Answers

Sure@DreamSure@Dream

Use rendered attribute

<apex:inputfield value="{!Case.Job_Type__c}" rendered="{!Case.RecordType.Name=='IT Services'}"/>

This was selected as the best answer
jcaldjcald

This is awesome! I used RecordTypeID instead and it works!

Sure@DreamSure@Dream

Dont use hardcoded ids..

jcaldjcald
please indulge me? why not?