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
mukesh guptamukesh gupta 

Label type field

Hi Expert,

I need to create a Label type field on opportunity page layout:
As per below image i need "Security 4" Label in stanard page layout.

 User-added image

Please confirm

Regard
Mukesh
Raj R.Raj R.

Are you asking how to make the field read only on the View of an Opportunity? Is the field editable on the edit screen of an Opportunity record?

Have you tried limiting readability using field level security and page layout assignments per profile?

Control User Access to Fields (https://help.salesforce.com/articleView?id=customize_layoutoverview.htm&type=5)

mukesh guptamukesh gupta
I need just heading on opportunity page layout like "Security4" is heading of "Account Type"   

Thanks
 
Raj R.Raj R.
Have you tried?
 
{!$ObjectType.Opportunity.fields.FieldMachineName.label}

Additional resources:
  1. https://salesforce.stackexchange.com/questions/43782/opportunity-name-label-not-showing-correctly​
  2. https://salesforce.stackexchange.com/questions/137618/displaying-standard-fields-labels-in-vf-page