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
Subodh chaturvedi 5Subodh chaturvedi 5 

How to restrict editing Case fields when a Case is closed?

  Is there a way to restrict editing the other case fields when a Case is in "closed" status; meaning you would have to reopen the Case to be able to edit the other Case fields??
brahmaji tammanabrahmaji tammana
One option is by trigger (before update)

Just get the value of Case, if it is Closed, add an Error.

Thanks
Brahma
Akhil AnilAkhil Anil
Hi Suboth,

All you need is a validation rule with the below formula to achieve this.
 
AND(
TEXT(Status) = "Closed",
ISCHANGED(Field1),
ISCHANGED(Field2)
)

You can add the list of fields that you don't want to be edited in the ISCHANGED() function in the above formula.

Kindly mark it as an answer if that works !
Subodh chaturvedi 5Subodh chaturvedi 5
Hi brahmajit;
I want  to achieve this via validation rule .
 
Subodh chaturvedi 5Subodh chaturvedi 5
Hi Akhil Anil'

 
It is good for less fields   but what  if  have more than 50 fields than in that case i have to include those 50 fields in validation is there any alternative  to minimize our code  & lock our record .bcoz  what i need if the case get closed than none other field should get edit &save the record again except status field .
Akhil AnilAkhil Anil
Hi Subodh,

If you do not want any of the field values to be changed after the Case is Closed then your formula will be simply this
 
AND( 
TEXT(PRIORVALUE(Status)) = "Closed", 
TEXT(Status) = "Closed" 
)

Kindly mark it as an answer if that works !