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
TejTej 

Validation Rule to make some fields read only

Hi,

 

Is there a way to make some fields in the record can be locked/read only when the status of that record changes for a specific profile users??

 

Any help is much appriciated..

Steve :-/Steve :-/

Yes, the VR would look something like this:

 

AND(
OR(
ISCHANGED( Amount ),
ISCHANGED( CloseDate)),
(IsWon),
NOT($Profile.Name = "System Administrator"))

 

Sasidhar Reddy 43Sasidhar Reddy 43
@SteveMo__c 
Can you please tell me why OR is used when we want both the fields not  to be edited