How can you modify the list layout for a reference field in the Service Portal ?

snyderd
Giga Guru

I have a catalog item that I have modified the list layout in the classic ui to display several fields for each table entry when the magnifying glass is selected for a reference type variable. I would like these to be displayed when the making a selection for the same variable on the Service Portal.  Is this possible in the Service Portal?

1 ACCEPTED SOLUTION

snyderd
Giga Guru

I opened a ticket with hi and they supplied this link to the community site that corrected the issue.

https://community.servicenow.com/community?id=community_question&sys_id=b53687a1db1cdbc01dcaf3231f96...

 

I modified the Attributes field of the Catalog item variable as follows:

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=column_name;column_name;column_name

View solution in original post

6 REPLIES 6

Steve Kelly
Mega Sage

Do you have the field on the service portal set up as a catalog variable? If so you can use variable attributes to add columns and set other things. Specifically the 'ref_ac_columns' attribute to specify columns.

https://docs.servicenow.com/bundle/newyork-it-service-management/page/product/service-catalog-manage...

snyderd
Giga Guru

The field is a catalog variable in the Service Portal.  I tried using "ref_ac_columns=" specifying the 4 columns I would like to see when selecting the drop down for the reference variable but only see the column label for the  one set to Display is true when using the portal.

Hi,

When searching...you'll see the 4 columns, but once you select the option, then it shows the display field for that table.

Can you please screenshot what you're talking about if different.

This would be an example of what you should have in the attributes field on that variable:

ref_ac_columns_search=true,ref_ac_order_by=name,ref_ac_display_value=false,ref_ac_columns=name;title,ref_auto_completer=AJAXTableCompleter,edge_encryption_enabled=true

So for the above example, name and title is used...2 columns while searching.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi,

Glad you found the answer. For the record, that's what my post above does. No HI ticket needed.

Thank you.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!