How can i change the incident form section's tab colour in service now, i want to assign different color to different section and also want to know if i can change the background colour of form sections also.(i am using paris version)

VIKAS MISHRA
Tera Contributor

How to change form's sections tab color in servicenow

1 ACCEPTED SOLUTION

AnirudhKumar
Mega Sage
Mega Sage

The only way to do this is with DOM manipulation.

Write an onload client script on your table.

Bring the Isolate Script field on the form, and set it to false.

 

Add the below line of code:

$j('span .tabs2_tab:contains("Resolution Information")').css('background-color', 'aqua');

 

I have a Resolution Information section on the incident form, and this script works.

Change the text in the script according to your section name.

 

But its better to push back on this requirement. You can never say for sure this code or any DOM related code will work in future releases.

View solution in original post

4 REPLIES 4

MattiasJonsson
ServiceNow Employee
ServiceNow Employee

Asked and answered before it seems.

https://community.servicenow.com/community?id=community_question&sys_id=14fb0325db9cdbc01dcaf3231f961988

 

If correct or helpful, please indicate so!

 

I have already tried on load client script as per said by "saisowmya" in the link you have provided, however this script does nothing in Paris version

 

AnirudhKumar
Mega Sage
Mega Sage

The only way to do this is with DOM manipulation.

Write an onload client script on your table.

Bring the Isolate Script field on the form, and set it to false.

 

Add the below line of code:

$j('span .tabs2_tab:contains("Resolution Information")').css('background-color', 'aqua');

 

I have a Resolution Information section on the incident form, and this script works.

Change the text in the script according to your section name.

 

But its better to push back on this requirement. You can never say for sure this code or any DOM related code will work in future releases.

It worked , Thank you