You need to sign in to do that
Don't have an account?
Manikanth Goud Rajamouni 1
how to make a field readonly in salesforce through validation rule
I have User lookup field in opportunity which is manditory,if we save the opportunity record with stage='closed won',and selecting one user in User field and now if we try to edit opportunity record the User lookup field should be read only with the previous value saved .
Please try this in your validation rule.
AND(ISCHANGED(StageName), NOT(BlANKVALUE(PRIORVALUE(StageName)))
Thanks,
Amit