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
PRepakaPRepaka 

how to disable a SObject field textbox

How to make a field as Readonly in GUI. I done like this.
 
Setup->Accounts->PageLayouts->Phone Readonly. But if i do like that also user is able to enter value into that field. i want to disable that textbox.
For ex: In Account Tab, i want to make a Phone Field as ReadOnly in GUI. when we click on Edit on an Account, in that I want to disable that textbox related to Phone field. user not able to enter anything into that field. How can i do this.
ShamSham
Are you logged in with System Admin. profile.
A sys admin will be always able to edit a readonly field (set via the GUI) ,because he has "Modify All Data permission"
PRepakaPRepaka

hi sham,

 

Thanks for your reply. now i got the answer for my problem.