How to make a record producer look better?

dfry123
Mega Expert

This screen shot below is from an older version of Service Now (Someone who doesn't work here anymore made it and it was deleted). I recreated it but I cant get the colors and shading to look right, when I do a text background color it only goes to the end of the text and not to the end of the container:

find_real_file.png

This is how mine looks...

find_real_file.png

1 ACCEPTED SOLUTION

rohantyagi
ServiceNow Employee
ServiceNow Employee

You may find your answer in this blog. 

 

View solution in original post

11 REPLIES 11

Show variables in two column



rp.png



To make it colorfull please refer the link below.


i hope it will help you.



Changing background colour of a variable label in Helsinki



Thanks,


Harshvardhan



PS: Hit like or mark my answers as Helpful or Correct if applicable.


Now im really confused.. when I go to CMS, I don't have any sites listed.


Forget about CMS.


I tried on my Instance and i am able to make it colorful.


Please check the screenshot below.



rp2.png



Is that you want to achieve?



Thanks,


Harshvardhan


That doesn't look EXACTLY like I want it... but that will do!


hmm. i just tried for two variables. you can design your form in same way that you want.


before implementing it on your instance , i would like to say, i have used DOM Manipulation and it's not a good practice to make some changes by using DOM.



i have written OnLoad catalog client script for this.



function onLoad() {


    //Type appropriate comment here, and begin script below


var test= g_form.getElement('text').id.replace('sys_original.','');


var test1= jQuery("label[for='"+test+"']").css('backgroundColor','red');



var testing= g_form.getElement('yesno').id.replace('sys_original.','');


var testing1= jQuery("label[for='"+testing+"']").css('backgroundColor','grey');



}




Thanks,


Harshvardhan



PS: Hit like or mark my answers as Helpful or Correct if applicable.