Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to left align integer fields in listview?

nthumma
Giga Guru

ListView.JPG

is it possible to left align integer fields in a list view?

Thanks in advance.

1 ACCEPTED SOLUTION

Hi Srnewbie,



Please check the screenshot below.


change the Field name . i have test it on my incident list. and it is working fine.



Style sheet..png



Regards,


Harshvardhan



PS: Hit like, Helpful or Correct depending on the impact of the response


View solution in original post

23 REPLIES 23

harshvardhansingh



for some reason, it is not working.


I was trying on Helsinki.


please share the screenshot




Thanks,


Harshvardhan


negativefieldstyle.JPG



i think the issue is i have both negative values and positive values in Variance column.



Do you have any idea how to make it work if we have both -ve and +ve values and i want to color code -ve values.


Please correct me if i am wrong.


you have a field variance and it's integer type field where the value will be either in +ve or -ve. but you want to show color in only -ve value.


then above script should work.



Have you tried?



Thanks,


Harshvardhan


harshvardhansingh i tried and its not working