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

How to make record read only...??

I want to make a record read only based on the record type to all profiles except system admin.How to achieve this.


For eg. I have a record type "Candidate".For all the records which have candidate as record type should be read only to all profiles except system admin.


You can accomplish this with a validation rule.




AND(recordtypeid='therecordtypeid',!$User.ProfileId ='systemadminprofileid')


Create new page layout where all fields are readonly. assign this new pagelayout to the recordtype you want


Or ... create a new page layout where all fields are readonly and assign this new page layout to the profile(s) you want.


Hope this helps,