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
KaranrajKaranraj 

How to make text field as read only depend on picklist value?

Make a text field as readonly depend on the picklist value.

For Example my picklist value has A,B, and c suppose if i choose any one of the picklist value. Then below text filed should become read only.

 

How to do this.?

Best Answer chosen by Admin (Salesforce Developers) 
KaranrajKaranraj

I just found another way, instead of make that field as read only. I can use validation rule to avoid user to enter the value in that field.

All Answers

rohitsfdcrohitsfdc

are you working on Standard salesforce page or VF page?

 

Thanks,

Rohit

KaranrajKaranraj

Am working on standard salesforce page....

rohitsfdcrohitsfdc

there is no way for doing that in that case

KaranrajKaranraj

I just found another way, instead of make that field as read only. I can use validation rule to avoid user to enter the value in that field.

This was selected as the best answer