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

how to disable(gray out) a field based on a value in picklist


how do I disable(gray out) a field or two based on a selected value of a picklist. in non-salesforce a javascript would help me in it.

I am trying to do the same. can you send me sample

I am trying to disable (set to readonly) if the pick list value match on opportunity.

NOT(AND(ISCHANGED(Planned_Launch_Date__c ) , ISPICKVAL( StageName, 'Closed Won') ))

I do not want to any erro messages. Just gray out the filed based onpicklist value.



Did you get any solution for this.

I have almost same requirement.




Jin D.ax1084Jin D.ax1084

I know it can be done with Javascript but I'm trying to figure out exactly how.  Maybe something like this:


I know it can be done because a consultant did this for one of our fields and I now need to do it for a few others.

Marc MonetteMarc Monette
Not sure why this has been open so long.  I have the same problem.