The CreatorCon Call for Content is officially open! Get started here.

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

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');

Ashwini20
Kilo Contributor

This doesn't work for me. Give JavaScript browser error. How to achieve this?