- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2018 10:28 AM
How can we change the color of "Label" variable in Service catalog. i want to highlight the text in red.
Thanks.
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2018 12:13 PM
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');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2018 10:31 AM
Are you using Service Portal or IT portal? changing color label requires DOM manipulation and it doesnt work on Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2018 10:32 AM
Hi, We are using IT portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2018 10:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2018 10:39 AM
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