Hide “Closed Complete” and “Closed Incomplete” from State Choice List in Now Mobile Custom Filte

Gajendra singh
Tera Contributor

Regarding Custom Filters in the ServiceNow Now Mobile application.

In the custom filter configuration, we are using the State field, which displays all available state choices (as shown in the snapshot), including:

Closed Complete

Closed Incomplete

(Other states)

Requirement:
We would like to restrict users from seeing specific state values — particularly:

Closed Complete

Closed Incomplete

The goal is to prevent users from selecting these states in the filter dropdown within Now Mobile.

Is it possible to hide or remove specific state values from the choice list in a Now Mobile custom filter, based on our requirement?

Gajendrasingh_0-1771831347237.jpegGajendrasingh_1-1771831353717.jpeg

 

3 REPLIES 3

Gajendra singh
Tera Contributor

Hi is it possible to hide

KavinderS
Giga Contributor

This comes from dictionary, so it will not be possible directly to do what you are asking. Now Mobile do not support this.
You can add pre filter to the returned data though, so selecting these states will not return any data for you. 

Other solution is to create a separate choice field for mobile view and use that instead. Here you control what choices user see.

gourav786gs
Tera Contributor

Yes it is possible, I got similar requirement few days back.

So here what happening is you are seeing all the choices for that field that would be visible on native for that field of that table,

So simple workaround/solution that i implemented is the reference qualifier of the field, I used advanced reference qualifier and inside the scriptInclude I checked if gs.isMobile()==true then i return the query different query, and it worked for me the best.


Hope it helps you, I you still face any issue connect with me over linkedin or reply here.