How to change display value for a list collector

Aditya Bashyam
Tera Expert

Hi,

 

For example, I am creating a list collector variable which is referenced to the Project table. Currently, the display value is showing the Project Name (short_description). So,

1. How can I show the Project Number instead of short_description?

2. How can I show multiple display values in the dropdown?

 

Let me know if anyone could help me, Thanks !

1 REPLY 1

Ankur Bawiskar
Tera Patron

@Aditya Bashyam 

you will have to make Dictionary changes in Project table then only it will show Project Number

Note: if you change display value to Number in project table then it will impact everywhere in instance where project table is referred

So I recommend not touching that

-> Instead create multi-line text variable and populate Project numbers for all projects user selects in list collector using onChange catalog client script

this link has solution from Asif

Populate Email Addresses of users selected in List Collector variable to Multi Line Text Variable 

AnkurBawiskar_0-1769767767260.png

 

To show other fields you can add ref_ac_columns in variable attributes and give the additional fields

See example below for CI table

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=category;serial_number,ref_ac_columns_search=true,ref_ac_order_by=name

Variable attributes sections

AnkurBawiskar_1-1769767820777.png

 

Output: I have added category and serial_number as extra fields to be shown along with name

AnkurBawiskar_2-1769767858166.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader