[SalesForce] How to disable or readonly lookup field in standard page

EDIT:

On a standard page. NOT using VF page

Is it possible to write a validation rule or any approach to make a field disabled once the user save?

I have a page with couple of fields including lookup and once the user save the record I like to prevent user from changing the lookup fields.

Best Answer

You can add a validation rule that uses ISCHANGED to compare the values of the lookup fields to their previous values. If the user is attempting to change any of the lookups, the rule will throw an error:

OR(
  ISCHANGED(Lookup_1__c),
  ISCHANGED(Lookup_2__c),
  ISCHANGED(Lookup_3__c),
  ISCHANGED(Lookup_4__c)
)
Related Topic