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
ilaiilai 

set a field to readonly immediately when a checkbox is checked on Edit page

Hi,

 

Would like to ask it is possible to set a field to readonly immediately when a checkbox is checked on Edit page (E.g. account)

 

Thanks,

werewolfwerewolf
Right now you can only do that by rebuilding the page in Visualforce -- there's no way to change field accessibility on edit pages in real time based on other fields on straight-up edit pages.