I want to exclude addresses to the State of Oregon using the locator widget for 2.3.

500
2
07-18-2011 08:54 AM
by Anonymous User
Not applicable
Original User: RedmondGIS

Pre 2.3.1 .xml code was
<listfield>State</listfield>
<listvalues>OR</listvalues>

for 2.3.1 ESRI says to use http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Locate_widget/01m30000000r000000/

<fields>State</fields>
<fields listvalues="OR">
but no dropdown shows up, and it still searches all of US???

I am using this service http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Streets_US/GeocodeServer
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Paul,

  Try this instead:

<fields><field name="State" defaultvalue="OR" visible="false"/></fields>
0 Kudos
by Anonymous User
Not applicable
Original User: RedmondGIS

This will work, thanks Robert!
0 Kudos