<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS Online Basic Viewer - Change default text (Place or Address) in the Search tool in ArcGIS Instant Apps Questions</title>
    <link>https://community.esri.com/t5/arcgis-instant-apps-questions/arcgis-online-basic-viewer-change-default-text/m-p/776608#M824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kelly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, thank you for the help! This goes well for the geocoder "Esri World Geocoder". But in my first request I forgot to say, that the search happened in a "searchable layer". So I thing I have to configure the "Add search layers..." section. But I do not really know how an where... Could you please assist me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2015 13:26:32 GMT</pubDate>
    <dc:creator>MarkoEinspieler1</dc:creator>
    <dc:date>2015-04-10T13:26:32Z</dc:date>
    <item>
      <title>ArcGIS Online Basic Viewer - Change default text (Place or Address) in the Search tool</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/arcgis-online-basic-viewer-change-default-text/m-p/776605#M821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to change in the ArcGIS Online Basic Viewer the default text (Place or Address) in the search tool (see attachemant)? I downloaded the template via GitHub, but have not found any passage in the *.js-files to change it. And is it possible to maximize the results, when typing in some search?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 15:28:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/arcgis-online-basic-viewer-change-default-text/m-p/776605#M821</guid>
      <dc:creator>MarkoEinspieler1</dc:creator>
      <dc:date>2015-03-30T15:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Basic Viewer - Change default text (Place or Address) in the Search tool</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/arcgis-online-basic-viewer-change-default-text/m-p/776606#M822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marko - I've moved this question to &lt;A href="https://community.esri.com/group/1433"&gt;ArcGIS Online Templates&lt;/A&gt;​ to better assist you (the Basic Viewer isn't one of the Story Map apps).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 15:52:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/arcgis-online-basic-viewer-change-default-text/m-p/776606#M822</guid>
      <dc:creator>OwenGeo</dc:creator>
      <dc:date>2015-03-30T15:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Basic Viewer - Change default text (Place or Address) in the Search tool</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/arcgis-online-basic-viewer-change-default-text/m-p/776607#M823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to specify placholder text in the main.js file. If you want to do it for the standard address locator you can add the following code at approximately line 870. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geocoder.placeholder = "Custom placeholder text goes here";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 16:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/arcgis-online-basic-viewer-change-default-text/m-p/776607#M823</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-03-30T16:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Basic Viewer - Change default text (Place or Address) in the Search tool</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/arcgis-online-basic-viewer-change-default-text/m-p/776608#M824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kelly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, thank you for the help! This goes well for the geocoder "Esri World Geocoder". But in my first request I forgot to say, that the search happened in a "searchable layer". So I thing I have to configure the "Add search layers..." section. But I do not really know how an where... Could you please assist me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 13:26:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/arcgis-online-basic-viewer-change-default-text/m-p/776608#M824</guid>
      <dc:creator>MarkoEinspieler1</dc:creator>
      <dc:date>2015-04-10T13:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Basic Viewer - Change default text (Place or Address) in the Search tool</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/arcgis-online-basic-viewer-change-default-text/m-p/776609#M825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a configured search layer you'll need to add a line that sets the placeholder in main.js around line 902. If you only have one search layer configured just add something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; source.placeholder = "My Custom Placeholder Text";&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have more than one search layer you'll want to check the layer title or id first to ensure you get the correct placeholder text for the layer you are looking for. For the next release of ArcGIS Online we plan to provide an easier way for you to setup and configure the placeholders for search layers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another alternative would be to update the config.js file and add a new property called placeholder to the searchLayers section. Then you could check in main.js to see if you have a placeholder defined and then use that value.&amp;nbsp; So you'd update config.js like this;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "searchLayers":[{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "myLayerId",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "fields": ["parcelid"],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "placeholder": "My Custom Placeholder"
&amp;nbsp;&amp;nbsp;&amp;nbsp; }],&lt;/PRE&gt;&lt;P&gt;Then update main.js as follows:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; source.searchFields = layer.fields;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; source.displayField = layer.fields[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(layer.placeholder){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; source.placeholder = layer.placeholder;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:43:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/arcgis-online-basic-viewer-change-default-text/m-p/776609#M825</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-12T08:43:36Z</dc:date>
    </item>
  </channel>
</rss>

