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
Matt FolgerMatt Folger 

Validation Rule on a Specific Field?

Hi, the Validation Rules look like they can get record-specific, but even though Validation Rules appear as a related list under the object customization screen, they cannot, or I'm not seeing how, you can reference them to just apply to specific fields and not the entire record.  I have an object that a large group of people have access to, but I only want the owner of that specific record to be able to change one of the fields, or the validation rule pops up.  

The validation rule that was sorta working was:
$User.Id <> OwnerId
And this worked but applied to all changes on the record while I just want it to apply to a specific field.  Any suggestions?
 
Best Answer chosen by Matt Folger
VaasuVaasu
hi Matt.

You can use formula like this

AND(ISCHANGED(FIELD API NAME),$User.Id <> OwnerId)