Ordering Reference field Drop down
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2017 02:20 PM
I m having a custom table which i set as a reference for one of my dropdowns(Reference field made as dropdown). Is there a way where i can set the order in which the order would be displayed in my dropdown?
In my dropdown, records are being displayed in the alphabetical order., but i want those records to display in the same order as in my table.
Thanks,
Tony

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2017 02:27 PM
Hello Tony,
I don't think this is possible. At the max, you can define the dictionary attribute to filter records i.e sort the autocompletion choices based on the column name passed.
Auto-Complete for Reference Fields - ServiceNow Wiki
Enhancement requests: Using HI to tell us how you would improve the ServiceNow product
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2017 03:31 PM
Pretty sure in the advanced ref qualifier section you could add your query plus the ORDERBYfield.
Example
active=true^ORDERBYname
I could swear that works, but I might be wrong - give it a shot.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2017 03:46 PM
i want those records to display in the same order as in my table
What exactly does this mean? If you have five fields, the list of records could be sorted by any of those fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2017 07:15 AM
Yes, but while you can set the order of these fields by autocomplete or search, it doesn't seem to apply when you use a choice list for your references.
I have the same issue as the choice list sorts the available options alphabetically, but I also have an order field and would like to sort the choice list based on that.
Thanks