Sort Themes in User Preferences

WORKFLOW-COWBOY
ServiceNow Employee
ServiceNow Employee

I have made a significant number of Theme variants. I am curious to know if anyone has found a way to sort them alphabetically for user selection.

 

For example, if a user were to select a different "Theme" in their Preferences, they would see these out of order selections:

STARLORDNOW_0-1718888448800.png

 

I have two solutions I tried to get these to sort alphabetically, but neither were successful. 

 

First, I tried sorting the UX Theme Style [m2m_theme_style] records by the order value in an alphabetical manner. Like this:

STARLORDNOW_1-1718888644202.png

 

This seems to have no effect on Variants. It seems to only effect the precedence of settings on the Core UX Theme Styles. (For example, if you make the same declaration in two different Core UX Theme Styles, then the style with the higher order value appears to take precedence.)

 

The other sorting solution I tried was to make a Before Query Business Rule on the table UX Theme Style [m2m_theme_style] in an attempt to force queries to sort results by either the 'Order' or 'Style' fields, but this did not have any effect on how the Themes are presented in the user Preferences. 

 

STARLORDNOW_2-1718888840788.png

 

I tried the same thing on the UX Style [sys_ux_style] table with no effect either. 

 

STARLORDNOW_3-1718888899168.png

 

 

At this point, I am out of ideas on how to sort the Theme options in User Preferences. 

 

Any ideas? 🤠


--------------------------------------------------
Workflow Cowboy
LinkedIn: https://www.linkedin.com/in/dalestubblefield/
YouTube: https://www.youtube.com/@starlordnow
1 ACCEPTED SOLUTION

amys3323
Tera Expert

I just was looking for the same thing. I don't know if this is still an issue for you, but I found this on ServiceNow Docs - 

https://docs.servicenow.com/bundle/xanadu-platform-user-interface/page/administer/navigation-and-ui/...

View solution in original post

1 REPLY 1

amys3323
Tera Expert

I just was looking for the same thing. I don't know if this is still an issue for you, but I found this on ServiceNow Docs - 

https://docs.servicenow.com/bundle/xanadu-platform-user-interface/page/administer/navigation-and-ui/...