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
JayaJayaJayaJaya 

Urgent please, Disabling checkbox in Visualforce

Hi,

I have 3 Checkboxes(custom fields) for an Object : All, One and Two
 
In edit page which is a Vf page for that Object, on checking All checkbox, One and Two checkbox should be disabled.
In detail page, once I click on Edit and come to the edit page, the All checkbox is displaying checked(which I did in above step), but One and Two checkbox are also displaying enabled.
How to achieve this? I mean even after clicking on Edit, and if All checkbox is true(or checked), the One and Two checkbox shud be disabled by default.

Thanks a lot!
Suneel#8Suneel#8
Can you post your code.So that we can suggest necessary changes
Sai Ram ASai Ram A
Hi Jaya

I think you have overridden ONLY New Button with your Visualforce Page, but not the Edit button (Page). If Edit page is also a Visualforce then you can achieve the expected functionality..

Share the code so we could suggest

Thank you
BLearn