Select to view content in your preferred language

Add item to unique list

10-01-2015 02:57 PM
Occasional Contributor

The filter on a query is pretty clear on how to add a drop down for user to select from the unique values in a field.  What I would like to do, however, is add an item at the top of the list for 'All Values', so that the user could either select something specific or not select any item at all.

I've found where the filter item is created in the configuration JSON, but it just appears to have a type of unique that finds the values from the field in the feature layer, but is it possible to add to the list?

Example JSON for the filter:

"filter": {

        "logicalOperator": "AND",

        "parts": [


            "fieldObj": {

              "name": "DEVICE_TYPE",

              "label": "DEVICE_TYPE",

              "shortType": "string",

              "type": "esriFieldTypeString"


            "operator": "stringOperatorIs",

            "valueObj": {

              "isValid": true,

              "type": "unique",

              "value": "Pole"


            "interactiveObj": {

              "prompt": "Device Type is",

              "hint": "type of device"


            "caseSensitive": false,

            "expr": "DEVICE_TYPE = 'Pole'"



        "expr": "DEVICE_TYPE = 'Pole'"


Tags (2)
0 Kudos
1 Reply
MVP Emeritus


   I don't think that this is possible with out editing the Query widgets code base. The eSearch has this ability already, with the all option for the unique value drop down and the ability to define your own user lists drop down.  Enhanced Search Widget Version - 9/11/15

0 Kudos