Incorrect display value shown for Choice fields on List view

forraikrisztian
Tera Contributor

Hello Everyone,

I have created a table with two fields:

  • fields:
    • Catalog item (Reference to sc_cat_item)
    • Server size (Choice list), with two options:
      • Label: "Small Access", value: "small"
      • Label: "Small Office", value "small" (yes, the same value)
  • Set the Dependent value for Server size to Catalog item

Created two records:

  • CatItem: Access, Server size: Small Access
  • CatItem: Office Keys, Server size: Small Office

The records are shown in List view (notice that Office keys have also Small Access as Server size):

 

find_real_file.png

But on form view, the record is shown correctly:

find_real_file.png

I would expect the two to be the same 🙂

Am I missing something?

 

 

 

 

1 ACCEPTED SOLUTION

Brian Lancaster
Tera Sage

You cannot have 2 choices with the same value.  It will never display correctly.  You should probably set the values to small_access and small_office.  Most likely on the list view since the values are the same it is probably just pulling the one that appears first on your choice list (based on the sequence).

View solution in original post

6 REPLIES 6

Brian Lancaster
Tera Sage

You cannot have 2 choices with the same value.  It will never display correctly.  You should probably set the values to small_access and small_office.  Most likely on the list view since the values are the same it is probably just pulling the one that appears first on your choice list (based on the sequence).

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,


Yes Brain is right. ServiceNow will always show Label in choice field based on value and it will always show different labels based on the order or may be sequence.


Thanks,
Ashutosh

forraikrisztian
Tera Contributor

Hi Ashutosh, Brian,

 

is there any official documentation about this?

Also, its a bit strange that it works in form view, but does not work on list view (I would expect something like work with both, or work with none 🙂 ).

 

Thank you!

HI,

I dont find any official doc for this. But this come's with experience or issue's we encountered while coding.


IF you really want something, please raise a HI ticket.

Thanks,
Ashutosh