Wednesday, April 17, 2013

Make Picklist Read Only if it has a value, else allow to input value in Salesforce

If a pick list field has already a value, then can it be read-only?


If field has no value, then it will allow people to change its value. But if any value is present, then will not allow to change it.
Make a Validation rule:

AND(
ISCHANGED(pick_list__c),
TEXT(PRIORVALUE(pick_list__c)) <> "")


No comments:

Post a Comment