Salesforce Admin has created many fields, but he wants to set a few custom fields as Read-Only to some profiles.
Where can the salesforce admin achieve this?
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer: A and D
Options A and D are correct.
Users can change a field to be read only through Field level security and Page layouts, but some users are able to edit fields which are Read Only as per Field Level Security or based on the Page Layout.
This behavior is seen if the Profile associated with the User has 'Edit Read Only Fields' selected.
That's why you need to remove the permission of editing read-only fields on their profiles.
Option B is incorrect because the workflow is a way to automate certain business processes.
You can create a rule based on certain criteria that you set.
Option C is incorrect because process builder is a point-and-click tool that lets you easily automate if/then business processes and see a graphical representation of your process as you build it.
Reference:
The correct answer to this question is A. Field Level Security.
Field Level Security (FLS) in Salesforce allows administrators to control the level of access that different profiles have to specific fields in an object. FLS helps to ensure that sensitive data is protected from unauthorized access or modification.
To make a custom field read-only for a particular profile, the Salesforce administrator can adjust the Field Level Security settings for that field. Here are the steps to do so:
Navigate to Setup by clicking on the gear icon in the upper right-hand corner of the screen.
Under the Administer section, click on the Object Manager and select the object that contains the field you want to modify.
Click on Fields & Relationships and then select the field you want to modify.
Click on the Set Field-Level Security button.
On the Field-Level Security page, you will see a list of all profiles that have access to the object.
To make the field read-only for a particular profile, click on the Edit link next to that profile.
In the Edit Field-Level Security dialog, adjust the access level for that field to Read Only.
Click Save to save your changes.
By adjusting the Field Level Security settings in this way, the Salesforce administrator can control which profiles can view or edit a custom field in an object. In this case, by setting the custom field to Read Only, the administrator is limiting the ability of the profile to make changes to the field's value.