Solved! Go to Solution.
/* * 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);
};
}
/* * 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); }; }; }