<?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 Formatting InfoWindow from Select with Feature Layer sample in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/formatting-infowindow-from-select-with-feature/m-p/243935#M22587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using this as a guide: &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/query_buffer.html"&gt;https://developers.arcgis.com/en/javascript/jssamples/query_buffer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have put it into my code to use with my own data. The biggest problem I am having with it is that the info window seems to be hard to configure based on that sample code. I want to format it like the Identify task I have set up, where I can change the field name title, etc. And I don't want to have the FID show up (in this sample the ObjectID shows up and isn't requested, in mine its the FID). I can configure the field name titles but I can't get the values associated with them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully I've explained this well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what the info window looks like for the selection: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]28382[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Info window for the identify task (which I want the selection result to look like):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]28383[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Oct 2013 20:02:31 GMT</pubDate>
    <dc:creator>JessicaKnight1</dc:creator>
    <dc:date>2013-10-16T20:02:31Z</dc:date>
    <item>
      <title>Formatting InfoWindow from Select with Feature Layer sample</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/formatting-infowindow-from-select-with-feature/m-p/243935#M22587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using this as a guide: &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/query_buffer.html"&gt;https://developers.arcgis.com/en/javascript/jssamples/query_buffer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have put it into my code to use with my own data. The biggest problem I am having with it is that the info window seems to be hard to configure based on that sample code. I want to format it like the Identify task I have set up, where I can change the field name title, etc. And I don't want to have the FID show up (in this sample the ObjectID shows up and isn't requested, in mine its the FID). I can configure the field name titles but I can't get the values associated with them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully I've explained this well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what the info window looks like for the selection: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]28382[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Info window for the identify task (which I want the selection result to look like):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]28383[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 20:02:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/formatting-infowindow-from-select-with-feature/m-p/243935#M22587</guid>
      <dc:creator>JessicaKnight1</dc:creator>
      <dc:date>2013-10-16T20:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting InfoWindow from Select with Feature Layer sample</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/formatting-infowindow-from-select-with-feature/m-p/243936#M22588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: evtguy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the sample you refer to, this portion of the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;infoTemplate: new InfoTemplate("Block: ${BLOCK}", "${*}"),
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;is what populates the infoWindow and the "${*}" specifies that the infoWindow will show all fields specified in the outFields list. What you need to do is tweak this to just list the fields you want. Something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;infoTemplate: new InfoTemplate("Block: ${BLOCK}", "Facility: ${FACILITY}&amp;lt;br&amp;gt;Products: ${PRODUCTS}&amp;lt;br&amp;gt;Status: ${STATUS}"),
outFields: ["BLOCK","FACILITY","PRODUCTS"]
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to specify the field name that's used in the title of the infoWindow &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;(I couldn't figure it out from what you posted)&lt;/SPAN&gt;&lt;SPAN&gt;. I think this will get you what you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:11:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/formatting-infowindow-from-select-with-feature/m-p/243936#M22588</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T12:11:05Z</dc:date>
    </item>
  </channel>
</rss>

