/* * when a value triggers a submit such as when Enter is pressed in text box * perform the search */ private function onSearchSubmitted(evt:Event):void { if(searchGroup.numElements == 1){ equeryFeaturesText(null); }else{ //If the search is valid then the searchBtn is enabled if(searchBtn.enabled){ equeryFeaturesText(null); }; }; }
/* * when a value triggers a submit such as when Enter is pressed in text box * perform the search */ private function onSearchSubmitted(evt:Event):void { // TODO: validate here? // if single value, then automatically submit // TODO: if >1 value and all are valid, then submit if(searchGroup.numElements == 1){ equeryFeaturesText(null); }; }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.