- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 05:42 AM
We have a custom locations field of type List Collector.
Also have a dropdown field "What type of location is affected" with choices:
- Enterprise Wide
- Region
- Country
- Select Locations
- When Region=True display a list collector field titled "Regions" which only shows the regions on the cmn_location table (Mandatory)
- When Country=true display a list collector field titled "Countries" which only shows the countries on the cmn_location table (Mandatory)
- When Select Locations=True display a list collector field titled "Locations" of all of the locations on the cmn_location table (Please modify the attributes of the list collector so that siteID is displayed in the first column) (Mandatory)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 06:28 AM
@JenniferRah I want this functionality on change_request and incident form not for the catalog item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2024 05:46 AM
I've tried the below code and it works:
1. Create the script include:
Name: GetLocations:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 06:16 AM
A List Collector is like a Reference field with multiple values. So it stores the sys_ids of the records selected and will show the display value of the record. So if you make 3 list collectors pointing to the Locations table, they will each show the locations themselves, not the specific fields you mentioned.
What you seem to be describing is that you want to show a selection list with different fields pulled from the cmn_location table. If it's okay to be able to select just one choice, maybe a Lookup Select Box would be a better choice. Then you can do something like this:
That would only allow you to select one value, though. Is that what you are needing? If not, can you give some more detail?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 06:28 AM
@JenniferRah I want this functionality on change_request and incident form not for the catalog item.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 06:46 AM
Sorry. I made an assumption since you said "List Collector". Those are only for Catalog Items. The same principle applies to List fields, though. They will only show the default value of the table.
You can use a Choice field or String with drop-down and write a client script to dynamically pull the values from the cmn_location table, but that seems a bit cumbersome. If this data doesn't change often, it might be best just to create a Choice field and manually enter the choices. Again, that would be a single-select solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2024 05:46 AM
I've tried the below code and it works:
1. Create the script include:
Name: GetLocations: