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
TilluTillu 

How can i make field is only editable by system admin only?

I have a lookup field, I should need to make this field is only editable by system admin only. Not to users .how can i do this.

Best Answer chosen by Admin (Salesforce Developers) 
souvik9086souvik9086

Go to the field. Click Set Field Level Security and then under 

Field-Level Security for Profile -> Visible

 

Just select the checkbox beside System Administrator.

 

If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks

All Answers

souvik9086souvik9086

Go to the field. Click Set Field Level Security and then under 

Field-Level Security for Profile -> Visible

 

Just select the checkbox beside System Administrator.

 

If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks

This was selected as the best answer
sfdcfoxsfdcfox
You can make the field read-only for all profiles. System Administrators have the permission to edit read-only fields, so they will be able to edit the values even though it is read-only.