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
Nandhini S 3Nandhini S 3 

providing edit access to field based on record type

I have a custom object 'Object1', there are two record types rec1 and rec2.
For rec1, the field1 should be editable for all the profiles. I have created a permission set(perm1) and provided access for the record type and the field.
For rec2, the field1 should be editable only for certain profiles. I have created a permission set (Perm2) and provided access to the record type and field.
There is a profile which has access to both the record types. The users with that profile should be able to edit the 'Field1' in rec1 but shouldn't be able to edit 'Field1' in rec2. The users in this profile has 'Perm1' assigned to them so they are able to edit 'Field1' in both the record types.
How can i restrict access to 'Field1' in rec2.
Is there any other way to restrict access other than using a validation rule?
 
Zachary SingerZachary Singer
Hi Nandhini,
Besides a validation rule, you could create different page layouts assigned by record type and profile, and lock the field on the layout as needed. Just keep in mind this is not true field level security, and users may still be able to edit the field in other ways.