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
PubNoahPubNoah 

Validation to LOCK or "GREY OUT" fields

Hello,

 

I am desperate!  Is there a validation to set it so if "Integration__c" picklist has "PCI" selected, than "CPM__c" will be locked and unable to be edited?  I'd like it to be greyed out, or locked.  Please let me know if this is possible with validations, or if there is another way to do this.  Alternatively, if there is some other clever workaround, please let me know.

 

Thanks.

Steve :-/Steve :-/

You can't do that with a Validation Rule, you can only prevent them from editing the field and saving the record.  If you want to "lock" or "grey out" a field, then you need to use Visualforce (and I don't know anything about Visualforce)

_Prasu__Prasu_

you can refer following thread:

It defines workaround for this to achieve such functionality.

http://community.salesforce.com/t5/General-Development/How-to-lock-the-Record/m-p/123271

 

I hope this helps.

Sree_NaniSree_Nani

Hi Stevemo,

                     you can only prevent them from editing the field and saving the record. Can you explain this to do with validation rule.