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 making a field required for a certain profile

If a user with the Sales Member profile saves an opportunity, they should get an error message if they don't enter text in the field Execuitve Summary.

I have this validation rule but it does not work after I log in as the user with this profile.

$Profile.Name <> "Sales Member", 
( Executive_Summary__c = ""), 
Best Answer chosen by Terry_0101
Brian FordBrian Ford
You want the formula to evaluate to true to invoke the rule. The operator for profile name is reveresed. It should be equals. Try this:
   $Profile.Name = "Sales Member",