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

How to show the Column header for a reference variable on Service Portal

Karthick PS
Tera Contributor

Hi,

Please help.

How to show up the column header of a table in a reference variable on Service portal?

Example. I have a reference variable thats referring sys_user table.

When user filling the form on serviceportal, he has to see the column headers like Name, Title, Department

 

1 ACCEPTED SOLUTION

@Karthick PS 

it seems you marked other response as correct for your earlier question

Need Javascript to check if a string does not start with

Also requesting you to check this question and mark my response as correct as I have already provided solution to that

Disable the "Add to cart" in the service catalog items on the Instance.

Also check this older question of yours and mark appropriate response as correct

Excluding items from the in-progress Update Set

Regards
Ankur

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

View solution in original post

18 REPLIES 18

Hi,

example below for CI table

you need to give the ref_ac_columns attributes for that and give the additional fields

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

Variable attributes sections

find_real_file.png

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

 find_real_file.png

Regards
Ankur

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

Please share your variable configuration and how it looks after adding that in native and portal

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

Thanks for the instant reply.

What I need is..

In your example of CI record, I want to display the category and serial_number as column headers of that drop-down on portal.

Is that achievable?

@Karthick PS 

that is what I shared the variable attributes to be added

it should work for sys_user table as well

please share what you configured and what is not working

Regards
Ankur

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

@Ankur Bawiskar ,

Columns are displaying. No issues in that.

Unable to share the configuration as some client restrictions are in place.

But, All I need is to display the Column Header like Title, Department, Email at the top of drop-down in the portal..

Even in your example of CI Record, I m not seeing those..

find_real_file.png