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
miku105miku105 

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.

InternalServerErrorInternalServerError

You can accomplish this with a validation rule.

 

e.g.

 

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

Teach_me_howTeach_me_how

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

SFFSFF

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,