How to make a reference field appear as dropdown list?

MG Casey
Mega Sage

The Notification Messages table has a particularly interesting field called the Device field:

find_real_file.png

It is actually a reference field, but instead of the user having to type in text to get possible selections, it just acts as a normal drop-down box.

I've tried to recreate this functionality in my own fields by using the same dictionary entry values, but no luck:

find_real_file.png

Its Choice List specification tab:

find_real_file.png

Any ideas on how to make that kind of field? It has some appeal for reference fields where users may not know possible values.

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi MG,



I use these all the time (for short reference lists anyway.) You pretty much spotted it in your screen shot.



Just change the dictionary choice list specification to Dropdown (with None usually works best for me.)



System Dictionary - ServiceNow Wiki


View solution in original post

9 REPLIES 9

Figured it out - it's when you pass 25 available records that the reference choice field automatically becomes a reference field. That's smart of them to code that in - it could really start to slow down page load times if there were 1,000 of choices to load in.


Interesting. Thanks for sharing. It looks like someone was paying attention to my technical best practices after all. 🙂


prathyusha_snow
Tera Contributor

Chuck,

 

Is there a way for this to be achieved in the list view as well?

Hello Prathyusha,

I don't believe this is possible. We've already configured the table to have the Reference Autocomplete and set that to AJAXReferenceChoice and it is working for the form. There is not a mechanism to configure the control any differently for a list so you'll get the standard popup no matter how you have the dictionary set up for that field.

Regards,

Tushar

Here's my findings... It doesn't work in list v2. Reference fields are shown with the reference lookup.

 

In list v3, it *DOES* show a choice list picker, but doesn't seem to be populating properly. I call this a BUG (even in Kingston P1).

find_real_file.png