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.

Add a new sort by option in Topic Content Widget - Employee Center

Alex Sastre
Tera Guru

Hello,

 

I need to add a new option in the select box of "Sort by" in the Topic Content Widget. The idea is that it must sort the records depending on the value of the order field (ascending). I have the option added but I dont know how can be the functionality in the script:

 

AlexSastreBra_0-1689594198113.png

Thank you.

 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Alex Sastre ,

  1. Control + right-click the sort options at the top of the results list.
  2. Click Instance Options.
  3. Configure the desired settings for the sort widget.
     
    Instance option Description
    Bootstrap color The color of the search widget.
    CSS Custom configurations that determine the look and feel of the elements in the widget. For more information, see Service Portal SCSS Primer.
    Hide Relevancy Removes the relevancy sort option.
    Table The table that contains the fields used to sort 
    Sort Fields The fields used for sorting the list.
    Sort Field Labels The labels for the fields that appear in the sort options. The default is Views:desc,Newest:desc,Alphabetical.

    The sort order for the sort field labels is ascending. To use a descending order, denote :desc.

  4. Click Save.

View solution in original post

6 REPLIES 6

Jose Manuel
Tera Contributor

@Alex Sastre did you find any solution?

IulianaB
Tera Contributor

 

has anyone found a solution? we upgraded to Zurich and still no way to add sort option