The CreatorCon Call for Content is officially open! Get started here.

I have a choice that is showing in blue.

abrahams
Kilo Sage

I have a choice that I added as an option to State.   It is active and I can't see any issues with it yet the text is showing in blue.   According to the article that I found on the wiki http://wiki.servicenow.com/index.php?title=Customizing_Choice_Lists it states "By default, inactive or invalid choice list values appear in blue text instead of black."   I deleted the entry and recreated it but still it is showing in blue.   This is an intiger field.   Would anyone have any ideas?

BlueOption.png

1 ACCEPTED SOLUTION

abrahams
Kilo Sage

ServiceNow response to this issue is listed below.


Sometimes the new values aren't properly cached.   They cleared the cache and it looks great!



Again ... Thank you all for your help!


View solution in original post

12 REPLIES 12

abrahams
Kilo Sage

Thank you all.   I've looked at all your helpful suggestions and tried and looked at them all.   None of them seem to work so I am going to pose the question on the HI to see if there is something wrong that I am just not seeing.   I will let you   know what they say.   Thank you all so much for your suggestions!


abrahams
Kilo Sage

ServiceNow response to this issue is listed below.


Sometimes the new values aren't properly cached.   They cleared the cache and it looks great!



Again ... Thank you all for your help!


Natanael Osvald
Tera Expert

Let me point a issue that I've figured out some time ago!

If there is choices at some table field, you probably will faced this issue:

This could happen if you use getDisplayValue() to set values through BR or Workflow

This way you'll include at your table something like this:
//E.g. Category should have two choices Planned with Value 0 and Not Planned with Value 1
//Choice list should be:
1: Not Planned
0: Planned

If you do this through workflow:
//GET INFO
workflow.scratchpad.category = current.variables.u_category.getDisplayValue();
//Inserting '0' per exemplo, getDisplayValue() going to ge 'Planned' instead
gr.t_category = workflow.scratchpad.category;

//or BR
gr.t_category = current.variables.u_category.getDisplayValue();

The result going to be:
1: Not Planned
0: Planned
Planned: Planned //This one should be appear in blue!


Correct way:

workflow.scratchpad.category = current.variables.u_category.getValue();

Regards,

Wolf