AnsweredAssumed Answered

Search query syntax for searching two fields

Question asked by AreaPlan on Apr 10, 2018
Latest reply on Apr 10, 2018 by AreaPlan

Trying to perform a query task that searches two separate fields. The user text input can either be the Name field or a Docket field.

// Executes on each button click
function doQuery() {
// Set the search text to the value of the input box
document.getElementById("inputTxt").value
queryParams.where = "Name like '%" + document.getElementById("inputTxt").value + "%'";
layer.queryFeatures(queryParams).then(showResults);
}

 

Appreciate the help.

Outcomes