HNS Test Page

function loadScript(url){ var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.onload = function () { script.type = 'text/javascript'; }; script.src = url; head.appendChild(script); } loadScript('/Forms/js/custom/underscore/underscore-min.js'); datumTokenizer: function (d) { return Bloodhound.tokenizers.whitespace(d.value); }, queryTokenizer: Bloodhound.tokenizers.whitespace, remote: { url: 'https://gis.corvallisoregon.gov/pub2/rest/services/Base/AddressCorvallis..., wildcard: '%QUERY', filter: function (data) { return $.map(data.results, function (result) { // get the name from the result by plucking it out of the attributes // pluck works with arrays so enclose attributes as an array and take the first returned as name var name = _.pluck([result.attributes], result.foundFieldName)[0]; return {Address: result.attributes.ADDRESS}; }); } }, }); //Use the id of your field (found on the right side of the edit page)