I want to restrict what a user can enter into a form field. I could have over 80,000 values for street addresses, but I would like to query and use an autocomplete to make it easier on the user while restricting what they enter. Is a queryTask capable of this?
QueryTask is limited by the configuration on the service. The most Ideal would be to let user enter atleast 3 charaters without trying to get auto complete values. When you have the first 3 Character, your result will be greatly reduces from 80000 to a couple of thousands and it would be easier to display them as suggestions.
Hope this helps.
PS: I would have some rest service to get me the values only.
I could have over 80,000 values for street addresses
Without knowing your use, it sounds like you could consider using a geocoder and the new search dijit.
I do plan on using a geocoder. It's so that we can verify addresses that users enter are valid to eliminate manual verification.
Just to clarify for me, this is for some data entry form and not for navigation. I assume you want to do a form with fields like addr_nbr, street_name, street_type, city, state, zip, etc., but use a filtering select on the street_name and street_type fields?
I uploaded the project. There is a just an address field, but several.
The best way to post an example. Thanks! Got busy, but I'll have a look.