Field Style for Currency type field ()

Tapish Sharma1
Kilo Sage

Hi Folks,

I am trying to add field style to the field which is of currency type. If the value is negative then I need to highlight the field.

I tried below code but it is not working. It works fine for an integer type  field but not working for currency field 

javascript:current.u_field_name<'0'

I added the above code in value field of field style

background-color:red;

 

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

try this

javascript: current.u_field_name < 0

Regards
Ankur

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

Hi Ankur, 

I tried this but doesnt work

I tried something similar but didn't work

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

@Tapish Sharma 

Any update on this?

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