- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2022 03:32 AM
Can someone explain how do we get values in a lookup select box in a particular order.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2022 03:34 AM
Hi Vaibhav,
By particular order you mean in a sorted order I suppose. If that’s the case then just add below line of code in the Reference Qualifier of the lookup select box
javascript: 'ORDERBYu_order' //replace u_order by the field by which you want to sort the values.
Regards,
Shubham
Shubham Tipnis
ServiceNow Enthusiast
⭐️ 3x Rising Star (2022–2024) – ServiceNow Community
Sharing insights, use cases & real-world learnings from the Now Platform
Always learning. Always building.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2022 03:34 AM
Hi Vaibhav,
By particular order you mean in a sorted order I suppose. If that’s the case then just add below line of code in the Reference Qualifier of the lookup select box
javascript: 'ORDERBYu_order' //replace u_order by the field by which you want to sort the values.
Regards,
Shubham
Shubham Tipnis
ServiceNow Enthusiast
⭐️ 3x Rising Star (2022–2024) – ServiceNow Community
Sharing insights, use cases & real-world learnings from the Now Platform
Always learning. Always building.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 07:38 AM
Hello,
I tried this it does not work. There is a KB where SN says they will not support Lookup Select Box sorting if it is a dependent variable. https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0695435