Reference field dependent on value of another field

Celliven
Giga Expert

I know this is a 101 question, though I am having a mental blank.

I have added a reference field of configuration items [cmdb_ci] to a form and I want it to offer choices based on the value of another field   1st Rack [u_1st_rack], which is linked to Locations [cmn_location].

I want to specify a location in 1st Rack, then have Configuration Items only display CIs that are in the location specified.

I have set the dependency, but am not sure if it is the Attributes I need to set or a Dictionary override?

find_real_file.png

I can find lots of things that talk about dictionary overrides but not a lot that gives practical examples of setting attributes.

Thanks

Chris

13 REPLIES 13

amlanpal
Kilo Sage

Hi Chris,



Please refer the below link for your requirement.


https://community.servicenow.com/message/1056386?et=watches.email.thread#1056386



I hope this helps.Please mark correct/helpful based on impact



Harish KM
Kilo Patron
Kilo Patron

I did like this



creatded a field location--reference to---cmn_loaction


Created a field config item-list type --to Configuration ITem// here made dependent to location



find_real_file.png


Then right click config item--dictionary'


find_real_file.png



Now i get Ci based on location selected



find_real_file.png



find_real_file.png



I have 2 CI based on location Sandiego.


Regards
Harish

Hi Harishkumar



That makes sense to me and what I did, though I am still getting all CIs not just those based on the location.



Scratching my head and still working on it.



Thanks



Chris


Share your screen shot let me have a look.



Note your configuration item shud be List type not reference type


Regards
Harish