Use of 'dependent value' field in 'choice' entry definition

Surya Kuraku
Kilo Contributor

Team,

Sorry I could not find any WIKI article on how to use 'Dependent Value' in defining a choice entry. Please note this is not at dictionary level . I am talking about the choice list that are configurable for a dropdown in sys_choice.list.

5 REPLIES 5

Kalaiarasan Pus
Giga Sage
And what is dictionary level exactly? Dependent field is used to define the value based on which the options are displayed. Check the category and sub category values and you should be able to understand.

Brad Tilton
ServiceNow Employee
ServiceNow Employee

The field you're referencing on the sys_choice table works in conjunction with the field on the dictionary. To see it in action you can look at the oob Category and Subcategory fields on incident. From the dictionary you specify the field that your field is dependent upon, and then in the choice list you define the value on the dependent field that your value is dependent on. Does that make sense?



Creating New Fields - ServiceNow Wiki


Thank you Kala & Brad ! I understood Incident's Categorty-Subcategory concept on how to use dependent values.



I was wondering if any 'choice list'   entry can be manipulated without mentioning its dictionary attribute - Dependent field.



I tried to give some random value for a 'state' choice entry. And all I can observe is - "in dropdown the value is shown at the bottom"   . The order of choice list is changed.  



So just thinking if we can add any java script to DEPENDENT value field to manipulate the values.   Don't ask what I am trying to do it 🙂 .. just doing some research to limit the choices for a field on LIST edit, without ACLs. ACL blocks the whole field.


I am not sure what you are trying to do but you may try using addoption and removeoption methods of g_form.