
Two ways you can do that. Option 1) Create a separate recordtype and page layout and update the recordtype based on the checkbox value selection. Need to write a workflow field update to update recordtype based on checkbox value. In the page layout you can make the field as read only. Note: Salesforce provided mandatory fields cannot be readonly.
How to make a field read-only in Salesforce?
Jyothsna. (Salesforce Developers) Hi Arpita, To make this field read-only, Click on. Setup ---> Customize ---> Objects ---> Page Layouts ---> Edit the page layout ---> Select the field you want to make read-only ---> Click on ' Properties ' of the field (an icon to the right end of field) ---> Here you will get a checkbox to make ...
How to make a field read only in Visualforce page?
How to make a field read only in visualforce page. You can use output field tag instead of using inputfield tag, which will display the field as readonly in visualforce page. let me know if you have any questions.
Can a user edit fields that are 'read only'?
Users are able to edit fields which are 'Read Only' as per Field Level Security or on the Page layout. This behavior is seen if the Profile associated with the User has 'Edit Read Only Fields' selected.
What is the difference between visible and read-only fields?
Field level security , difference in Visible ,Read only . ? If you check the "Visible" checkbox, that field will be visible to that profile or Users of that profile will not be able see this field. If you check the "Read-Only" checkbox, that field will be read only for the users of that profile or Users of that profile will be able edit this field.

Can a required field be read only in Salesforce?
At a simple level, you can't make a field read-only if it's required.... it doesn't make sense... the user wouldn't be able to save a record because they wouldn't be able to enter data in the required field.
How do I make a field read only for some users?
In the role's detail view, click on the desired module (e.g. Accounts) in the left pane to view its fields. Click the value next to the Email Address field and choose "Read Only". Click "Save" to confirm your settings.
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 restrict a field in Salesforce?
Restrict Field Access with a ProfileFrom Setup, in the Quick Find box, enter Profiles, and then select Profiles.Select the profile you want to change.Click Object Settings and select the object for which you want to update the field settings.Click Edit.More items...
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?
1. Open the field. 2. Click Set Field-Level Security button....For all the users:Go to the page layout.Click the Field Properties in the page layout.Make it Read-Only.
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.
Can we make picklist field read only in Salesforce?
Thanks in advance. You can make the field read-only either on the page layout or the profile (field-level security). Keep in mind that as a system administrator, you have permission to edit read-only fields, so it will never work for you. It will work for regular users though.
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.
How do I set field permissions in Salesforce?
From Setup, enter Permission Sets in the Quick Find box, then select Permission Sets, or enter Profiles in the Quick Find box, then select Profiles.Select a permission set or profile.Depending on which interface you're using, do one of the following: ... Specify the field's access level.Click Save.
What is the difference between visible and readonly in Salesforce?
If you check the "Visible" checkbox, that field will be visible to that profile or Users of that profile will not be able see this field. Read-Only: If you check the "Read-Only" checkbox, that field will be read only for the users of that profile or Users of that profile will be able edit this field.
What does read only mean in Salesforce?
The Read Only standard profile is defined as allowing assigned users to view the Salesforce org's setup, run and export reports, and view, but not edit, other records.