function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<apex:pageBlockSection rendered="{!ObjectAPIname.RecordType.Name== 'xyz'}">
Kindly mark it as the best answer if it works for you.
Thanks & Regards,
Priya Ranjan
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,
You can use rendered on pageblocksection based on the record type
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