Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I want to exclude addresses to the state of Oregon. Pre 2.3.1 code was

<listfield>State</listfield>
<listvalues>OR</listvalues>

for 2.3.1 ESRI says to use

<fields>State</fields>
<fields listvalues="OR">

but no dropdown shows up, and it still searches all of US?

share|improve this question
    
does it require more than one value to become a dropdown? –  Brad Nesom Jul 15 '11 at 3:02
    
i tried and still no dice <locator>tasks.arcgisonline.com/ArcGIS/rest/services/Locators/…; <minscore>40</minscore> <fields>State</fields> <fields>City</fields> <fields listvalues= "OR, CA"/> –  pdog Jul 15 '11 at 17:03
add comment

1 Answer 1

up vote 0 down vote accepted

this works:

<fields><field name="State" defaultvalue="OR" visible="false"/></fields>
share|improve this answer
    
This worked for me as well. That, and I didn't have the <usesingleline> tag set to false. Thanks. Also, you can mark your own answers as accepted if you want to, to show that the question has been answered successfully. –  Timothy Michael Aug 3 '11 at 20:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.