How can we change the color of "Label" catalog variable

dvelloriy
Kilo Sage

How can we change the color of "Label" variable in Service catalog. i want to highlight the text in red.

Thanks.

1 ACCEPTED SOLUTION

dvelloriy
Kilo Sage

Thanks everyone for your inputs. 

 

Just tried this and its working..

 

var getLblParent= g_form.getElement('label_test').id.replace('sys_original.','');

 

var getLblElement = jQuery("label[for='"+getLblParent+"']").css('color','red');

View solution in original post

6 REPLIES 6

SanjivMeher
Kilo Patron
Kilo Patron

Are you using Service Portal or IT portal? changing color label requires DOM manipulation and it doesnt work on Service Portal


Please mark this response as correct or helpful if it assisted you with your question.

Hi, We are using IT portal.

sachin_namjoshi
Kilo Patron
Kilo Patron

Please check below  for solution to change label color for service portal and platform view

 

https://community.servicenow.com/community?id=community_question&sys_id=45f7cb2ddb1cdbc01dcaf3231f9619fb

 

Regards,

Sachin