is there a way to change the display value of the list collector by using the REF qualifier field?

reyservicenow
Tera Expert

is there a way to change the display value of the list collector by using the REF qualifier field?

9 REPLIES 9

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Rey,



The short answer is No However you can find the below blog helpful.


https://www.servicenowguru.com/system-ui/customizing-slushbucket/


ok thanks i have seen it done before with some scripting as an advanced ref qualifier... thats why i figured i asked. i thought there was a template for this and i can just add the variable name 🙂


Thanks Rey for the update. Please let me know if that works for you 😃


carlc
Kilo Contributor

This worked for me using a catalog client script



function onLoad() {         //Apply a default filter to the list collector variable         var collectorName = 'variable name here';         var filterString = specified what to filter out here;                 //Try Service Portal method         try{                 var myListCollector = g_list.get(collectorName);                 myListCollector.reset();                 myListCollector.setQuery(filterString);         }         //Revert to Service Catalog method         catch(e){                 //Hide the list collector until we've set the filter                 g_form.setDisplay(collectorName, false);                 setCollectorFilter();         }