Questions about Field Styles (table sys_ui_style)

GeoffreyOptumOp
Tera Expert

I hate these special User icons and I want to remove them forever:

find_real_file.png

I find the magical sys_ui_style record, as follows:
https://[YourInstance].service-now.com/nav_to.do?uri=sys_ui_style.do?sys_id=0881b9cf5572d1401d4017ac561db583

find_real_file.png

I confirm that this is the right record by switching out "user.gif" with "vip.gif" in the Style box.  I now have this:

find_real_file.png

Since there is no Active flag on these records, I try changing the value field to any/all of the following in an attempt to get the rule to NEVER be applied:

false
{false}
{false;}

javascript:false
javascript:false;
javascript:{false}
javascript:{false;}

javascript:return false
javascript:return false;
javascript:{return false}
javascript:{return false;}

javascript: 1>2
javascript: {1>2}
javascript: {1==2}

NONE OF THIS WORKS!

I then COMPLETELY DELETE the entire sys_ui_style record, and somehow I am now back to where I started!!

find_real_file.png

How is this happening, please???

Thank you.

1 ACCEPTED SOLUTION

GeoffreyOptumOp
Tera Expert

Oh my gosh, I figured this out finally...

What was happening is that there were TWO Styles applied to the Number field, one at the task level and one at the incident level.  When I effectively disabled the one at the Incident level, the one at the task level kicked in!

find_real_file.png

 

View solution in original post

5 REPLIES 5

Allen Andreas
Administrator
Administrator

Hi,

Could be a cache issue? Try typing cache.do and pressing enter in left-hand navigation.

Outside of that, just to mention, that appears to be custom development. In an out of box instance, there is no user icon or VIP icon next to the incident number on the left like that.

Otherwise, you could just try and set the condition to never be true, not the script.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Thanks @Allen Andreas ,

But I tried "cache.do" already.

And there is no "condition" field, just a "value" field, which I tried setting to "false" every way I could think of, but that somehow didn't work.

find_real_file.png

The original value was this:

javascript:current.u_last_updated_by_caller==true

Hi,

Sorry, the value field is the condition field for when the style would be enacted.

You may be able to make a "value" that wouldn't ever be true, thus the style won't kick in.

Perhaps oddly, not just typing false, but maybe something like:

javascript:current.u_last_updated_by_caller==1

Which would never be true for a boolean field. Just an idea!

You deleting it and somehow the style being applied like it came back from the grave is definitely weird, but beyond that, try that?

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

GeoffreyOptumOp
Tera Expert

Oh my gosh, I figured this out finally...

What was happening is that there were TWO Styles applied to the Number field, one at the task level and one at the incident level.  When I effectively disabled the one at the Incident level, the one at the task level kicked in!

find_real_file.png