AnsweredAssumed Answered

Query Feature Service - Multiple Attribute Fields using one keyword

Question asked by Wilcox.Jeff on Apr 26, 2018
Latest reply on Apr 27, 2018 by jskinner-esristaff

Hi everyone, I adapted this sample from ESRI staff to search a Feature Service for ONE attribute, but I have not been able to figure out how to have it search multiple fields:


JS Bin - Collaborative JavaScript Debugging 


I referenced the following resource, to try to query multiple attribute fields with no success, even though AND/OR seems like a viable option for .where


Query (Feature Service/Layer)—ArcGIS REST API: Services Directory | ArcGIS for Developers 

function doQuery() {
// Set the search text to the value of the input box
queryParams.where = "Barcode LIKE '%" + document.getElementById("inputTxt").value + "%'";

Any suggestions to search multiple feature service fields for one keyword?

I'm fresh to JavaScript.