choice list i am getting value instead of label.how to rectify this

priya0895
Giga Contributor

My issue is suppose cat value: x, sub-cat:y but i defined its value as x|y;and dependent value as x.

in incident form the sub-cat value is coming as x|y instead of y..this is the issue.

17 REPLIES 17

Hi Priya,



Can you share screen shot for dictionary of fields and have you written any assignment rules.



Thank you,
Ashutosh


find_real_file.png


These are the choices in the item field with different values but same label as "incident".


Hello Priya,





I suppose your Category field is from type String. While Type & Item are from type Choice: Dropdown with — None --. Looking at the Dictionary Entry of the field Item I see that the Labels of all records are all the same. I guess this is why the system goes for the Value field, in order to display the different choices. Why don't you try to ensure that the Label of the Item choices will be the Incident Numbers and run a test?




Best Regards,


Georgi Mavrodiev



IT Consultant


Do It Wise



You may visit us in our Web Site: www.doitwise.com


Hi Georgi,



Thanks but Category field is   from type Choice: Dropdown with — None --. And I wish to populate the label of item field particularly as "incident"   which is one of the choice of item depending upon category and type.


Priya,





I've just made a test on my instance.



The scenario is the following:
- On Change Request table I have a default field called "Category" and it is from type: String, Dropdown with -- None -- + Default Value: Other;
- I created one custom field called "Subcategory". It is from type: Choice, Dropdown with -- None -- + Dependent on field Category;
- I created a second custom field called" SubcategoryTwo". It is also from type Choice, Dropdown with -- None -- + Dependent on field Subcategory;
I added two Choices in the SubcategoryTwo both with Label "Incident" and different Values, such as XXX777888XXX for example. I also added each of these two Choices to depend on the same Dependent value coming from one of the choices of Subcategory field.
No, if I select a Category choice and then select one of the choices in Subcategory which depends on the selected Category choice -> I will be able then to select the responding SubcategoryTwo choice. When I click on the Dropdown of the 3th field I see:


2017-11-14 10_48_29-CHG0030342 _ ServiceNow.png



To me, it looks like I see what you are actually trying to see in your environment.
So, I have two remarks here: 1. Review the 3 fields of yours, check out there Dependent fields, the Dependent values of their choices and etc. I believe somewhere here the trouble - maker lies.
2. Whats the point in selecting a record in your "Item" field when you actually will not know which one of the records you are selecting, as they will be different (looking at the screenshot you provided) but looking at their Labels - all will be the same?




Best Regards,
Georgi Mavrodiev



IT Consultant


Do IT Wise



You may visit us in our Web Site: www.doitwise.com