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
Firas Taamallah 18Firas Taamallah 18 

How to lock field from editing ?

Hi , 

There's path in Case record type 
I want to lock field from editing when Path is equal " Distribued" 

How can i achieve this?
Rgds,
Firas
AnudeepAnudeep (Salesforce Developers) 
Hi Firas - I recommend creating a validation rule. I found a sample here
 
AND(
   ISCHANGED(StageName),
   TEXT(StageName) = 'Closed Won',
   ISBLANK(Mandatory_Field__c)
)

Let me know if it helps