Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Show more information on Reference Selection

Brian Sorensen
Giga Guru

I am trying to sort out how to show other fields on the drop down of a reference box

 

Here is what I have

find_real_file.png

This is showing just the "Name" of the asset, I was hoping to show other information, like the Model type

 

Here is the back end of this

Type = Reference

find_real_file.png

 

When I look up this asset (5607) on the ALM table, here is the data we have displayed

find_real_file.png

 

In the drop down, we want to show the following

Display name | Serial | Model

So this one would be

WCN1C5607 | PC1CF6QG | Lenovo Thinkpad T495

 

I am assuming I need to modify the Variable Attributes?

1 ACCEPTED SOLUTION

Hi @Brian Sorensen 

Unsure why you're only responding to one person when I said the exact same thing above and provided a link right to the direct documentation to what you asked for (not a listing of all variable attributes -- but precisely to the documentation for your question), which includes numerous examples such as:

find_real_file.png

In any case, if my reply helped guide you Correctly, please mark it as Helpful/Correct.

Thanks and take care! 🙂


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

View solution in original post

7 REPLIES 7

This helps, but I am still not getting something.

 

Maybe I am not coding it right?

This is what I want to show

Display Name

Serial

Model

 

So I went to the ALM table, and this is what I believe the variables are

Display Name - display_name

Serial - serial_number

Model - model

So if I enter this into the into the variable attributes, I think it would work

ref_ac_columns=display_name;serial_number;model

 

But, I still don't get the results. I still just get the display name

Is there something I missed?

OK, I got it, I had to add the following

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=serial_number;model

 

Now it seems to work

Great!!!!!

Raghav
MVP 2023
LinkedIn