logo

NJP

Make Choice Field color change based on category values using Client Scripts

Import · Jan 19, 2023 · article

switch (newValue) {case "inquiry":control.style = 'background-color: green';break;case "software":control.style = 'background-color: orange';break;case "hardware":control.style = 'background-color: yellow';break;case "database":control.style = 'background-color: brown';break;case "network":control.style = 'background-color: red';break;

}

//Type appropriate comment here, and begin script below

}

If my video/content helped you in any way, please mark this video/content as BOOKMARK, SUBSCRIBE & HELPFUL

Best Regards,

Prashant Kumar (LearnIT)

YouTube Channel LearnIT: https://www.youtube.com/@learnitwithprashant

Blog LearnIT: https://medium.com/@LearnITbyPrashant

Prashant Kumar LinkedIn: https://www.linkedin.com/in/learnitbyprashant/

ServiceNow Community Prashant Kumar - https://www.servicenow.com/community/user/viewprofilepage/user-id/19635

View original source

https://www.servicenow.com/community/developer-blog/make-choice-field-color-change-based-on-category-values-using/ba-p/2447807