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
AchtungAchtung 

How can I restrict the upload on Files based on Record Type?


I have a Contact Object with two record types (Client & Intake).

I am enabling the "Files" related list to both page layouts, however, I only want the Intake record type to have the "Upload Files" or "Add Files" capability. The Client record will only be able to View Files.

I want to have this feature though regardless of User Profiles. Is writing a Trigger the best solution?
Raj VakatiRaj Vakati
Yes .. trigger is the option.. 

Validation rules i dnt think so it will work 
Ajay K DubediAjay K Dubedi
Hi Danilo,

This can be achieved using page layout and page layouts assignments.
In a page layout on the field properties, you can set the permission to read-only.
Below is the screenshot:
User-added image

and assign this record type to the specific user as per needs.
User-added image
Make the field editable in the other record types.

Let me know if it doesn't solve. Mark it best if solved!

Thank you,
Ajay Dubedi.