Reference field dependent on value of another field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2017 09:58 PM
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?
I can find lots of things that talk about dictionary overrides but not a lot that gives practical examples of setting attributes.
Thanks
Chris
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2017 10:15 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2017 10:20 PM
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
Then right click config item--dictionary'
Now i get Ci based on location selected
I have 2 CI based on location Sandiego.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2017 04:05 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2017 08:30 PM
Share your screen shot let me have a look.
Note your configuration item shud be List type not reference type
Harish