I have a group of users with the same profile (standard user) and I need to lock records from editing that they own when the Campaign status field equals Completed. However, they need to be able to edit the campaign record to completed if the status is any other value. So, I only need to lock the record from editing after it has been updated to completed.
I created a validation rule that prevents them from being able to edit the record if the status is already completed. However, when they need to update records that are not yet completed the validation rule fires of course and they get an error.
What approach should I take to accomplish this that does not involve apex as we have a low code environment?
Here is my Validation Rule: AND ( NOT(ISNEW()), NOT(ISBLANK (PRIORVALUE ( Status ))) )
Message: The Status of this Campaign is Completed. You cannot edit this record. Please contact your system administrator.