Changing Risk and Impact background color in change form

SimranK59042389
Tera Contributor

Hello Everyone,

I have implemented a Risk Assessment tab in change form before planning tab, risk assessment tab have 8 questions with 3 choices each and every options have scores which gets calculated and populate risk and impact field according to high, moderate and low which is working fine.

but i also want to implement background color change when the risk or impact is high color should be red, when it is moderate it should be yellow and when it is low it should be green.

risk and impact field is read-only.

please help me implement.

13 REPLIES 13

SimranK59042389
Tera Contributor

Hi @Dr Atul G- LNG 

i did created it according to the screenshot which you have attached but risk background color is still not changing does this work on read-only fields as well?

Hi @SimranK59042389 

 

I tried and it is working on list view

 

AGLearnNGrow_0-1747304897900.png

 

AGLearnNGrow_1-1747304918000.png

 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

SimranK59042389
Tera Contributor

Sorry I guess I did not gave the requirement properly  it is changing in list view as you have shown above but i wanted same in form view which is not reflecting.

thank you for your response please help me achieve same for form view as well.

Hi @SimranK59042389 

 

https://www.servicenow.com/community/developer-forum/field-styles-in-form-view/m-p/2043537

 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************