Reference field color change based a certain CI selected

Paul120
Tera Contributor

Hello!

 

I have onChange client script for all CIs in the Affected CI field when selected will change the field background color.

 

var c = g_form.getDisplayBox('cmdb_ci');
c.style.backgroundColor = 'yellow';

 

How to do one for only certain CIs that has a checkbox marked or has the value of true to change color for this condition?

5 REPLIES 5

Hi @Paul120 

 

I doubt it is OOTB available. or need a good scripting to check the certain CI. Try to log a HI case once.

*************************************************************************************************************
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]

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