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
KMK91KMK91 

Hide Visual force detail and List Button ?

Hi All.

How to Hide Visual force detail and List Button in particular record type?

Thanks
KMK
VinayVinay (Salesforce Developers) 
Hi KMK,

Check below references that can help you.

https://help.salesforce.com/s/articleView?id=000323565&type=1
https://salesforce.stackexchange.com/questions/170672/hide-custom-button-on-visualforce-page

Please mark as Best Answer if above information was helpful.

Thanks,
PriyaPriya (Salesforce Developers) 
Hi,

You can use rendered on pageblocksection based on the record type
<apex:pageBlockSection rendered="{!ObjectAPIname.RecordType.Name== 'xyz'}">

With in single pageblock, you can have 2 apex:pageBlockSection for 2 record types.

Below are the example of Similar requirements :-
1. https://developer.salesforce.com/forums/?id=9060G000000XjEiQAK
2. https://salesforce.stackexchange.com/questions/289798/hide-show-section-on-vf-page-based-on-record-types
3. https://salesforce.stackexchange.com/questions/184202/viewing-record-based-on-record-type
 

Kindly mark it as the best answer if it works for you.

 

Thanks & Regards,

Priya Ranjan