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
anvesh@force.comanvesh@force.com 

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 this..so 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?

Avidev9Avidev9

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

anvesh@force.comanvesh@force.com

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

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

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

 

 

 

 

Thanks

 

kumar.fdc81.3902978579608325E12kumar.fdc81.3902978579608325E12
HI anvesh,

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

Thanks