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

Validation Rule on a PickList selection

I would like to create a validation rule so that only Sales Rep and Systems Admins can modify a picklist field not inside Sales or any others.
Field name is:  Did meeting happen?
Picklist choices are: Yes, No

Here is my validation rule and it's not working correctly.  Can you help?

OR (
ISPICKVAL( Did_meeting_happen__c, "Yes"),
ISPICKVAL(Did_meeting_happen__c, "No")),
$Profile.Name = "Sales User")||
$Profile.Name = "Systems Admin")
Lalit Mistry 21Lalit Mistry 21
Try adding below condition to AND clause.
Rahul BoinepallyRahul Boinepally
You have used '=' which makes system admin and sales user NOT to modify the picklist value. Try below and see if it works.
OR($Profile.Name <> "Sales User"),
$Profile.Name <> "Systems Admin"))