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 to disable textbox?

for   case  object i created a field of  of text box.....i want to disable this text box (but it is in standard page i.e case obj) 


how can i disable that  it wont allow  to enter anything....i  dont  want  validation rule bec i dont want to display any error , simply not allow the user to enter nothing in to the textbox. any solution?


Move the field to a new section and mark the section to display in the Detail page. Sections can be made visible selectively on detail and edit page

i  dont want to hide  the field simply the text box should not allow anything to enter....

I dont think it is possible using standard layout, until you do some crazy js injection which way too much for this small requirement

Make it readonly

Sunil PalSunil Pal

Change their field type , on set and make that field as Auto number , it iwill not allow any to eneter anything


Or for other case we can't make any field readonly for system admin for other user we can only do







HI anvesh,

I am also same problem you get the solution please help me. ASAP