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

ServiceNow uses the value in the back end as the actual data.  The text is just for display.  If you have a choice with the same value it will not know what to display on the list layout.  The reason it is getting the correct one on your form is because you are going to the specific record and it is pull the correct one but that may not always be true.

forraikrisztian
Tera Contributor

Thanks, Everyone!