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
suvra shankha dutta 9suvra shankha dutta 9 

Profile based Field Accessibility Restrictions

I want to Prevent sales users (profile: Sales Rep) from modifying the 'Discount' field in opportunity record when the 'Sales Stage' has reached Negotiation/Review. But I would like sales managers (profile: Sales Mgr) to be able to edit the opportuntiy for any changes.

I believe it is possible through Validation Rule on Opportunity object but not able to come up with the right formula. Please let me help structure the VR.
Also can I achieve this using Field Level Security or Workflow rule ??
Mammu4Mammu4
Hi,
You can do this using validations or workflows. A simple validation would be something like this:
Error Condition Formula: AND( $Profile.Name = "Sales Rep" , ISPICKVAL (Sales Stage, 'Negotiation/Review'), ISCHANGED(Discount__c))
Error message: ---something--
Hope it helps!
Deepak RathinaveluDeepak Rathinavelu
Hi Shanka,

Please mark the best answer

Thanks,
Deepak Rathinavelu