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
SFDC n12SFDC n12 

Standard field as read only in salesforce


How to make a standard field on my custom object "Read only" in salesforce

Help me how to achieve this 
Tushar sharmaTushar sharma
You can make it Read Only from the page layout easily or Remove it from the page layout
SFDC n12SFDC n12
It's a standard field , not a custom field , how do i remove it from the page layout ?
Tushar sharmaTushar sharma
You can remove this field from Page Layout as well as make it Read ONly Did you try this or get any error because i can do this easily
SFDC n12SFDC n12
i tried , but since its a standrd field i couldnt do it , it shows " Required " only, its graded out
Tushar sharmaTushar sharma
i think you are making a required field to remove from pagelayout for example Name from Account which is not possible these are the mandatory field .you need to fill value in this case you need to create Custom VF page and in the extension before save manually fill the value after that you can eassily save the record. hope this help
Clayton HilteClayton Hilte
If the particular standard field has the blue dot next to it on the page layout, you cannot remove these or mark read-only. They must be there.