[SalesForce] how to make field ready only..

I want to make a date field read only..using validation rule…i want to enter its value when any record is inserted in child object.A user shouldn't be allowed to enter any value at all on account record…the value will only be coming from child record.

How can i accomplish this..may be validation rule..i know i can make a read only field from page layout.

I also know about ischanged function in validation rule but a user can save a new record.it will only work if a first time value has been entered.

i need suggestions

Thanks in advance.

Best Answer

AND(ISCHANGED(Field__c), NOT(BlANKVALUE(PRIORVALUE(Field__c)))

This will allow the user to enter a new value assuming no prior value has been entered, but once a value is set, it is locked in place.

Related Topic