The CreatorCon Call for Content is officially open! Get started here.

List Collector, glide_list, and more information

Jacob Heubner
Tera Contributor

Greetings fellow developers,

I'm working on something that (I think) should be out of the box functionality, but, if it is, I'm not seeing it.

On the regular native UI, I know we can use the glide_list attribute of a list collector catalog variable to avoid using the slushbucket and pre-loading records for a list collector variable.

However, if you compare the functionality of a true List data type (like the watch_list) to the List Collector data type, on a regular list, when you select an option in the UI, you see the normal 'Additional Information' icon (the little (i)) where you can preview or open the target record, while in the List Collector with glide_list, you don't.

Does anyone know of a simple way to get that 'more information' icon to display?  Is there something simple I'm missing here?

1 ACCEPTED SOLUTION

Iraj Shaikh
Mega Sage

Hi @Jacob Heubner 

In ServiceNow, the 'Additional Information' icon (the little (i)) that you're referring to is typically available on reference fields within forms and lists, allowing users to preview or open the target record in a new form or window. This functionality is not natively available on list collector variables or on fields that use the `glide_list` attribute.

The list collector variable is designed to allow users to select multiple records from a list and add them to another list, but it does not provide the same UI features as a reference field, such as the 'Additional Information' icon.

If you need to have the 'Additional Information' icon functionality on a list collector variable, you would likely need to implement a custom solution. Here are a couple of approaches you could consider:

1. Custom UI Action or Related Link: You could create a custom UI Action or Related Link that appears next to the list collector variable. This custom element could open a dialog or a new window showing the additional information for the selected record(s). However, this would require custom scripting and may not provide the exact same user experience as the native 'Additional Information' icon.

2. Client Script: You could write a client script that adds an 'Additional Information' icon next to each item in the list collector. The script would need to dynamically create the icon and attach an event listener to it that opens the record preview or form when clicked. This would also require custom JavaScript and careful testing to ensure it works as expected across different browsers and devices.

3. Custom Widget in Service Portal: If you are using the Service Portal, you could create a custom widget that mimics the functionality of the list collector variable but includes the 'Additional Information' icon. This would give you full control over the UI and behavior but would require knowledge of AngularJS and the Service Portal framework.

Unfortunately, there is no simple out-of-the-box setting or attribute that you can toggle to add the 'Additional Information' icon to a list collector variable. Any solution to achieve this would require custom development and should be thoroughly tested to ensure it meets your requirements and does not negatively impact the user experience or system performance.

Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

5 REPLIES 5

The implementation calls this function from the Client Script (onLoad Event) of the catalog item.