Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

Can we make ServiceNow read only fields background color

Not applicable

Hi,

 

Is it possible to change the background color of ServiceNow read-only fields in incident form from grey to another color?

 

Thanks

Bimsari

1 ACCEPTED SOLUTION
5 REPLIES 5

Hemanth M
Tera Sage

Hi @Community Alums ,

 

There is no out of the box settings to change the default readonly background color however you can apply background colours for fields in general using g_form.getElement()

 

Refer: https://www.servicenow.com/community/developer-forum/change-background-color-of-read-only-field/m-p/... 

 

 

 

Not applicable

Hi @Hemanth M 

Thank you for your reply

I tried this and it only worked for non read-only fields☹️

 

Bimsari!

Hi @Community Alums ,

 

why don’t you set the field read only after you change colour in the same script. (Remove existing read only logic)