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 make all controlls in vf page disabled /readonly in single shot

Hi all ,

 I have vf page with inputText ,selectlist,checkBoxes,selectRadio controlls now I need to disable or make readonly in single shot .( I mean if you want to disble a controll set disble = true , but in this case I need to have disable option in every controll )


Is there any other way to disable everything conditionally in single shot




Reading your requirement I understand that you wish to diable the fields on the VF page on a click of a button or depending on a field value:


Please go through the following threads where nusers have been able to succesfully implement this:




Yes, you can disabled attribute for all controllers.




<apex:inputText value="{!fieldname}" disabled="true" />


Thanks & Regards,



Salesforce Certified Developer

MetaSoftTech Solutions.