Am I missing something for my Search Widget? I am trying to customize the widget to search feature layers, but it only recognizes Integers and not String values. I believe my problem stems from my organization's configuration of its REST server. Any help is appreciated. I am running this in CMV 2.0.0beta2
define([
'esri/tasks/locator',
'esri/dijit/Search',
'esri/layers/FeatureLayer',
'esri/InfoTemplate',
'dojo/has',
'dojo/domReady!'
], function (Locator, Search, FeatureLayer, InfoTemplate, has) {
return {
map: true,
mapRightClickMenu: true,
enableInfoWindow: true,
enableButtonMode: has('mobile') ? false : true,
expanded: true,
enableSuggestions: true,
allPlaceholder: 'Find an address or APN',
sources: [{
placeholder: 'Find an address',