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.

Lock the filter

karthikbabu
Giga Expert

My Scenario: To show only location based incidents in the portal. I created a instance of simple list with a filter condition to show active incidents

and wrote a query location=javascript:gs.getUser().getLocation();. This shows the list of incidents with location based. but I need to lock down the

filter for the user to select all incidents as shown in the below image.

find_real_file.png

Any suggestions.

3 REPLIES 3

Anurag Tripathi
Mega Patron
Mega Patron

Hi Karthik,



Right click on the list-> configure-> list control. And there you can add the filter roles(restrict it to admin or nobody as needed).


-Anurag

Hi Anurag,



I am talking about the service portal. I am showing the list in the portal with a instance of simple list and wrote the above query in the filter. And I need to restrict the highlighted past in the image for all users.



Thanks,


Karthik


 

c2_silvia_1-1722365898024.png

habilitas omit filter

c2_silvia_2-1722366147989.pngc2_silvia_3-1722366217694.png