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
Shekhar S 18Shekhar S 18 

Validation rule for fees

I have created a field (Fees) and it is being changing, I have to prevent all users except System administartor profile from changing the related field if it is already populated.Give the formula for this validation rule
Best Answer chosen by Shekhar S 18
AbhinavAbhinav (Salesforce Developers) 
Hi Shekhar,

Try this

AND(
NOT($Profile.Name = "System Administrator") ,
NOT(ISBLANK(Field__c)),
ISCHANGED(Field__c)
)

If it helps mark it as best answer.

Thanks!

All Answers

AbhinavAbhinav (Salesforce Developers) 
Hi Shekhar,

Try this

AND(
NOT($Profile.Name = "System Administrator") ,
NOT(ISBLANK(Field__c)),
ISCHANGED(Field__c)
)

If it helps mark it as best answer.

Thanks!
This was selected as the best answer
Shekhar S 18Shekhar S 18
Thank you Abhinav
Suraj Tripathi 47Suraj Tripathi 47

Hi,

You can try like the below

AND(  NOT(ISBLANK(Fees__c)), ISCHANGED(Fees__c), NOT($Profile.Name = "System Administrator") )

Thanks

Allen StrombergAllen Stromberg
Thank you so much Abhinav.

MyCCPay (https://www.myccpay.today/)