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
Atul Shendge 2Atul Shendge 2 

how to restrict standard field for a particular profile to edit

Hi All,

I have a profile called Platform Inventor, who should not edit Docket No (API is Name) which is Standard field. In page layout and FLS it is restricted. I have wrote Validation rule:

AND(
ISCHANGED(Name),
$Profile.Name = "Platform Inventor",
RecordType.Name="Invention_Information")

With this rule I am still able to edit and Save the field.

Help will be appreciated.

Thanks,
Atul Shendge
ShirishaShirisha (Salesforce Developers) 
Hi Atul,

Greetings!

If you remove the access level on the FLS then the user with the specific profile will not be able to edit it.So,can you please try by giving the read access as well.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
Atul Shendge 2Atul Shendge 2
Hi Shirisha,

Thanks for the reply,

but in my scenario Docket No field is a Managed field and FLS is been restricted. So I am not able to remove Edit access.

can this be achieved through Validation rule, As Docket No field generate automatically when record is created. Need to restrict profile user from editing and saving the record.

Thanks in Advance.

Regards,
Atul Shendge