laptop and a wrench


Unable to set the JavaScript Search widget placeholder to the 'All' category when using multiple sources.

Last Published: November 20, 2015 ArcGIS API for JavaScript
Bug ID Number BUG-000086233
SubmittedMarch 19, 2015
Last ModifiedDecember 1, 2020
Applies toArcGIS API for JavaScript
Version found3.14
Operating SystemWindows
Operating System Version7 64 Bit

Additional Information

Use the allPlaceholder property to set custom text for the All Placeholder. This property is to be documented at the next release. s.allPlaceholder = "Enter address";


Use following work around: need to add "dojo/on" to the require //Change the place holder for the fist time document.getElementById("search_input").placeholder = "MY PLACEHOLDER"; //After you change the source and change it back to all //you will need to listten to the click event on(document.getElementsByClassName("searchMenu sourcesMenu")[0], "click", function(){ var element = document.getElementsByClassName("active")[0].innerHTML; if(element == "All"){ document.getElementById("search_input").placeholder = "MY PLACEHOLDER"; } });

Steps to Reproduce

Bug ID: BUG-000086233


  • ArcGIS API for JavaScript

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic