How to make the mandatory asterisk red on tabs that have mandatory fields

allison_holt
Giga Expert

We are wanting to make the asterisk that is next to the tab name red when there are mandatory fields on that tab.   For example, when our users select resolved on Incident, there are closure fields that are required under the closure info tab.   A tiny black asterisk shows up next to Closure Information, but they want it to be more obvious.   Where is this setting or how can I change this asterisk to red?

tabasterisk.JPG

Thanks!

Allison

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

It doesn't appear there's a setting anywhere that controls it, but you could do it in an onload client script using the following.



$$('span.tabs2_tab span.label_description').each(function(e){


      e.style.color = 'red';


});


View solution in original post

3 REPLIES 3

Brad Tilton
ServiceNow Employee
ServiceNow Employee

It doesn't appear there's a setting anywhere that controls it, but you could do it in an onload client script using the following.



$$('span.tabs2_tab span.label_description').each(function(e){


      e.style.color = 'red';


});


Worked perfectly!   Thanks, Brad!


Hello,

Is there a way to turn the tabs red when a mandatory field is blank?