I want to edit a field to make it read only in case user is editing an existing record on a custom object. Kindly guide me how to edit fields on the 'Edit record page layout' (of a custom object) that comes as a popup window.
Hi Isha,
Usually this is controlled by the page layout. If you go to Setup --> Object Manager and then your object, such as Account, you should then see Page Layouts. You might have multiple layouts, but you can see which one is assigned to users' profiles by clicking the Page Layout Assignment.
If you click into the page layout, however, you should see all the sections, and then you can use the wrench icon when hovering over a field to set the field to read-only.
One important thing to note here is that there is no separate page for editing and viewing records. The page layout drives what fields users see when either editing or viewing.
Thanks,
Mikey