How to show name and short description of a group selected in a list type collector field?

patricklatella
Mega Sage

find_real_file.png

I'm refactoring a catalog item to work in Service Portal...and am working with a List Collector type field.  In the old CMS portal, when a choice in the left slush bucket is selected (but not double clicked), it is showing the text (see screen shot) displaying the group's Name and Description.

How can I achieve this same behavior on a List Collector field in Service Portal?  thanks!

1 ACCEPTED SOLUTION

You can add columns using ref_auto_completer, I am using on User field 

ref_auto_completer=AJAXTableCompleter,ref_ac_columns_search=true,ref_ac_columns=last_name;first_name;user_name;email,ref_ac_order_by=name,ref_ac_display_value=false 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

View solution in original post

14 REPLIES 14

AshishKM
Kilo Patron
Kilo Patron

Hi Patrick , 

On portal , List Collector works same as reference field but it allows multiple records to be added. This new view is by design. You can add few more columns ( like name & description ) for display while selecting the correct value. Additional column will help user to choose right one.

Please refer this link : 

https://hi.service-now.com/kb_view.do?sysparm_article=KB0635149 

 

 

Thanks,

Ashish

Please mark correct/helpful for others if it helps you.


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

You can add columns using ref_auto_completer, I am using on User field 

ref_auto_completer=AJAXTableCompleter,ref_ac_columns_search=true,ref_ac_columns=last_name;first_name;user_name;email,ref_ac_order_by=name,ref_ac_display_value=false 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Hi Ashish, thanks for the reply.

OK, I've added the below script to the list collector field on my form (aiming at sys_user_group table).

I'm not seeing any change...is this correct?  The two columns from the groups table I want show are the [name] (which already shows) and the [description].

 

no_filter,ref_auto_completer=AJAXTableCompleter,ref_ac_columns_search=true,ref_ac_columns=name;description,ref_ac_order_by=name,ref_ac_display_value=true

I used the same and getting the column like below.

find_real_file.png

find_real_file.png


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution