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
sfg1sfg1 

Controlling field as Read only field and display dependent field in visualforce page

I have two picklist fields, Pick_Field1__c and Pick_Field2__c. I have created Field dependency, Pick_Field1__c as Controlling and Pick_Field2__c as dependent fields. But i need to make Pick_Field1__c (Controlling field) as Readonly field. How to achieve this in visualforce page.