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
rohitdrohitd 

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

Hi,

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.
UmapenUmapen

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.

 

eworks123456eworks123456

Did you get any solution for this.

I have almost same requirement.

 

Regards,

Manoj

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:

http://www.javascriptkit.com/javatutors/deform2.shtml

 

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.