How to add info when searching on select box or reference field

Kifrez
Kilo Guru

Hi,

I have a custom table . Let's say it has a name field and a description field.

When user search on service portal for a name, I would like the description to show next to the name .

For example as per screenshot below.

Thanks in advanced find_real_file.png

1 ACCEPTED SOLUTION

Hello Freddy,

 

Please check by also including [ref_auto_complete] attribute in [Variable attributes] field

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=description;primary_contact

 

Regards,

Mahendra

View solution in original post

9 REPLIES 9

Mahendra RC
Mega Sage

Hello Freddy,

If you are using the Reference field on Catalog item then you can use [ref_ac_columns] attribute in [Variable attributes] field on your catalog variable (like ref_ac_columns=user_name;email;sys_created_on) and like the [description] field.

Regards,

Mahendra

Hi Mahendra, thanks for responding.

It's a reference field.

 

I have a custom table with

- u_role = single line text field

- u_description = single line text field

- u_role_owner = reference field to user

 

On catalog item, it is a reference field . Then I added variable attribute with

ref_ac_columns=u_description;u_role_owner

 

but still doesn't work, do you happen to know why?

Hello Freddy,

 

Please check by also including [ref_auto_complete] attribute in [Variable attributes] field

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=description;primary_contact

 

Regards,

Mahendra

Hello Mahendra,

still not good.

It seems to be working if referencing to sys_user table (ref_ac_columns=)

I raised a case with ServiceNow to see what the say.

Kind regards,

Fred