Slaesforce FAQ

how to make standard field readonly in salesforce

by Lolita Douglas DVM Published 2 years ago Updated 2 years ago

You can make the field as Read-only from the page layouts clicking on range icon beside the field as follows: This field will be read-only specific to that particular layout. If the user's profile has Edit Read Only Fields permission, then he can edit this field, even if it has been marked as read only.

Salesforce Classic:
  1. Click on Setup | Manage Users | User.
  2. Open the user record and navigate to 'Permission Set Assignments' section.
  3. Open the Permission Set assigned and go to System permission.
  4. Deselect the option 'Edit Read Only Fields'
  5. Save.

Full Answer

How to set the field as read only in Salesforce?

You can set the field as Read Only on page layout. From the "Quick find" box on the left search for "Field Accessibility" then choose your "obj1". Select "View by fields" and choose "field1". For each profile select "Read Only" besides for "Billing User". Thanks for contributing an answer to Salesforce Stack Exchange!

How to make a read only field in a page layout?

Create a new page layout of object1 for bill user profile/specific profile and set the field1 to read only from the page layout settings. This will serve your purpose. Note that a sys admin can still edit that read only field. For a field countryName in the screen shot, i have applied the same.

How to make a read only field in a Bill Page?

Create a new page layout of object1 for bill user profile/specific profile and set the field1 to read only from the page layout settings. This will serve your purpose. Note that a sys admin can still edit that read only field.

Why can’t I edit the read-only fields?

If you are the system administrator for your organization (check your profile), you will always have access to read-only fields. Try signing on as a user who does not have system admin rights. This type of user should not be able to edit the fields.

Can I make standard field read only in Salesforce?

Generally speaking, no. Standard required fields are required for proper system operation and cannot be disabled in any way.

How do I make a field not editable in Salesforce?

Add field level security to the service territory object because this profile should not be able to edit any fields on it. Only should be able to add and remove the related object.

How do I make a text field read only in Salesforce?

Hi, You can make a feild Read Only by Making the feild Read Only at the Page Layout(but still the value can be populated during Data Load) or Edit the corresponding field and check the "Read Only" checkbox(This will not allow even during the data load). Hope this helps.

How do I make a field read only in Salesforce Apex?

Create a new page layout of object1 for bill user profile/specific profile and set the field1 to read only from the page layout settings. This will serve your purpose. Note that a sys admin can still edit that read only field. For a field countryName in the screen shot, i have applied the same.

How do I lock a field in Salesforce?

Using Record Type & Page Layouts: Create two different record types say “Open” & “Locked” and change the record type of the record using workflow field update or trigger. And then create a separate page layout for the “Locked” record type with all fields marked as 'Read-Only'.

How do you make a field non editable in Salesforce using validation rule?

3 Answer(s)Go to the object's field page under Setup.Click on the view link for the field.Click the Set Field-Level Security button.Change the field to read-only for the appropriate profiles (You would need to change to appropriate profile to test)

How do I make a field read only in Salesforce workflow?

>>Go to the Field and Click on the Set Field-Level Security button which is besides the Edit. >> Click on Read Only Checkbox besides the User's Profile.

How do I make a field read only in Salesforce validation rule?

"View by Record Types". I would choose View by Record Types. Then when the matrix appears, select the field and the profile that you what to change (i.e., field: annual revenue for the contact manager is editable). Click on that item or "cell" and change the field level security to read only.

How do I make a field read only in Salesforce VF page?

Hi, you can use java scrip in onload of a page and set the attribute 'readOnly' to true for inputField.

Can we make field read only from Apex?

Hi Mark, You cannot make field read-only based on picklist value, however you can create a validation rule and restrict text field to change when you have particular picklist value.

What is read only field in Salesforce?

When a flow tries to create or update records, fields that the running user can't edit are considered inaccessible , or read only. A field can be inaccessible because the user hasn't been granted permission to edit the field or because it's a system field that's always read only.

How do I make fields read only on page layout?

You can set the field as Read Only on page layout. Show activity on this post. From the "Quick find" box on the left search for "Field Accessibility" then choose your "obj1". Select "View by fields" and choose "field1".

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9