Changing Risk and Impact background color in change form

SimranK93838843
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

SimranK93838843
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 @SimranK93838843 

 

I tried and it is working on list view

 

AGLearnNGrow_0-1747304897900.png

 

AGLearnNGrow_1-1747304918000.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ Connect for 1-1 Session]

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

SimranK93838843
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 @SimranK93838843 

 

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

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ Connect for 1-1 Session]

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