AnsweredAssumed Answered

Can I limit Near Me widget results data?

Question asked by RGBWebDevelopment on May 15, 2017
Latest reply on May 18, 2017 by RGBWebDevelopment

Hi all,

I'm using the Near Me widget to identify locations in a layer that is geocoded, so its attribute table contains a lot of fields. I only want to display 2 or 3 of the nearly 20 fields returned for each result. I found these fields listed in the stemapp/predefined-apps/MY_APP_NAME/configs/NearMe config file inside the "fieldInfos" array and each item has a set of name : value pairs like this -

    {
       "fieldName": "Entity_Name",
       "label": "Entity_Name",
       "isEditable": true,
       "tooltip": "",
       "visible": true,
       "format": null,
       "stringFieldOption": "textbox"
    },

 

I tried setting "visible" to false, as well as removing all the fieldNames that I didn't need, but neither of those had any effect. Any idea how to limit the number of items displayed?

 

Thanks!

-Dan

Outcomes