<?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: How to change suggestion of suggestionsEnabled property? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-change-suggestion-of-suggestionsenabled/m-p/1575161#M86371</link>
    <description>&lt;P&gt;Yes, you can accomplish this by assigning a value to the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#suggestionTemplate" target="_self"&gt;suggestionTemplate&lt;/A&gt; property.&amp;nbsp; You'll also want to set the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#outFields" target="_self"&gt;outFields&lt;/A&gt; property to ensure that values for any fields you use in the template are being returned.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2025 22:43:20 GMT</pubDate>
    <dc:creator>JoelBennett</dc:creator>
    <dc:date>2025-01-13T22:43:20Z</dc:date>
    <item>
      <title>How to change suggestion of suggestionsEnabled property?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-change-suggestion-of-suggestionsenabled/m-p/1575107#M86366</link>
      <description>&lt;P&gt;In this (hopefully) &lt;A href="https://codepen.io/underjollyroger/pen/GgKdrEq" target="_self"&gt;reproducible example&lt;/A&gt;, my search field is "Region". The search shows values of the first field of the table, that being "Sitename L". Is there a way to change the suggestion?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let searchWidget = new Search({
  view: view,
  maxSuggestions: 6,
  sources: [
    {
      layer: fish,
      searchFields: ["Region"],
      name: "fish",
      zoomScale: 500000,
      maxSuggestions: 6,
      suggestionsEnabled: true,
    }
  ]
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Search:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JaredPilbeam2_1-1736802824700.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123275i4C254502B6BC3022/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JaredPilbeam2_1-1736802824700.png" alt="JaredPilbeam2_1-1736802824700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JaredPilbeam2_0-1736802790854.png" style="width: 767px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123274iCF0363BA2A0B0F63/image-dimensions/767x370?v=v2" width="767" height="370" role="button" title="JaredPilbeam2_0-1736802790854.png" alt="JaredPilbeam2_0-1736802790854.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 21:14:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-change-suggestion-of-suggestionsenabled/m-p/1575107#M86366</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2025-01-13T21:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to change suggestion of suggestionsEnabled property?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-change-suggestion-of-suggestionsenabled/m-p/1575161#M86371</link>
      <description>&lt;P&gt;Yes, you can accomplish this by assigning a value to the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#suggestionTemplate" target="_self"&gt;suggestionTemplate&lt;/A&gt; property.&amp;nbsp; You'll also want to set the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#outFields" target="_self"&gt;outFields&lt;/A&gt; property to ensure that values for any fields you use in the template are being returned.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 22:43:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-change-suggestion-of-suggestionsenabled/m-p/1575161#M86371</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2025-01-13T22:43:20Z</dc:date>
    </item>
  </channel>
</rss>

