How chane color of percent complete field ?

Kevin Smith2
Giga Expert

Good day everyone,

How to change percent complete field type depending upon the condition.

find_real_file.png

If Required SLA is greater then Total achieved then Total achieved field's progress bar should be Red and Not Blue else It should be Green.

Thanks

Kevin

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Kevin,

Use field styles for this you can give condition as well there

in left navigation go to field styles

select table and then field and give following

value: javascript: current.<requiredSla> > current.<totalAchievedSla>

background-color:red

again create 1 more field style for same table and field

value: javascript: current.<requiredSla> < current.<totalAchievedSla>

background-color:green

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,

This is only giving me a red dot beside the field which is not required.

My question is to make the whole progress bar red or green in the list view depending upon the condition I mentioned.

Thanks

Steven Herrmann
Giga Guru

Hey there Kevin,

This will be the info you're looking for directly from the docs:

https://docs.servicenow.com/bundle/london-platform-administration/page/administer/field-administrati...

If my reply helps you at all, I'd really appreciate it if you click the Helpful button and if my reply is the answer you were looking for, it would be awesome if you could click the Accepted Solution button!  🙂

Have a great day!

Steve

Hi,

Can you provide me some screenshots about how to achieve this depending upon the conditions I mentioned ?

Thanks